parent
b64c433619
commit
ee23de6c36
|
@ -36,7 +36,6 @@
|
||||||
#include "llvm/ADT/UniqueVector.h"
|
#include "llvm/ADT/UniqueVector.h"
|
||||||
#include "llvm/GlobalValue.h"
|
#include "llvm/GlobalValue.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "llvm/Target/TargetOptions.h"
|
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
|
|
||||||
|
@ -1028,7 +1027,7 @@ public:
|
||||||
|
|
||||||
/// needsFrameInfo - Returns true if we need to gather callee-saved register
|
/// needsFrameInfo - Returns true if we need to gather callee-saved register
|
||||||
/// move info for the frame.
|
/// move info for the frame.
|
||||||
bool needsFrameInfo() const { return hasDebugInfo() || ExceptionHandling; }
|
bool needsFrameInfo() const;
|
||||||
|
|
||||||
/// NextLabelID - Return the next unique label id.
|
/// NextLabelID - Return the next unique label id.
|
||||||
///
|
///
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "llvm/Target/TargetFrameInfo.h"
|
#include "llvm/Target/TargetFrameInfo.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <string>
|
#include <string>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
#include "llvm/CodeGen/MachineLocation.h"
|
#include "llvm/CodeGen/MachineLocation.h"
|
||||||
#include "llvm/Target/TargetInstrInfo.h"
|
#include "llvm/Target/TargetInstrInfo.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
#include "llvm/GlobalVariable.h"
|
#include "llvm/GlobalVariable.h"
|
||||||
#include "llvm/Intrinsics.h"
|
#include "llvm/Intrinsics.h"
|
||||||
|
@ -1527,6 +1528,12 @@ void MachineModuleInfo::AnalyzeModule(Module &M) {
|
||||||
SetupCompileUnits(M);
|
SetupCompileUnits(M);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// needsFrameInfo - Returns true if we need to gather callee-saved register
|
||||||
|
/// move info for the frame.
|
||||||
|
bool MachineModuleInfo::needsFrameInfo() const {
|
||||||
|
return hasDebugInfo() || ExceptionHandling;
|
||||||
|
}
|
||||||
|
|
||||||
/// SetupCompileUnits - Set up the unique vector of compile units.
|
/// SetupCompileUnits - Set up the unique vector of compile units.
|
||||||
///
|
///
|
||||||
void MachineModuleInfo::SetupCompileUnits(Module &M) {
|
void MachineModuleInfo::SetupCompileUnits(Module &M) {
|
||||||
|
|
Loading…
Reference in New Issue