diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-01-29 23:40:33 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-01-29 23:40:33 +0000 |
commit | c1c47c3fa4d6d21b65924c02ab2f228e6285152d (patch) | |
tree | fd3b777a09e70c72113d48a35711a99a610a7214 /lib/CodeGen/MachineModuleInfo.cpp | |
parent | f5b17fd938afe39a47ef5aef1b04cb6f437e3b98 (diff) |
Out of line function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33641 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineModuleInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineModuleInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineModuleInfo.cpp b/lib/CodeGen/MachineModuleInfo.cpp index 065d6cf295..15ea9b828d 100644 --- a/lib/CodeGen/MachineModuleInfo.cpp +++ b/lib/CodeGen/MachineModuleInfo.cpp @@ -15,6 +15,7 @@ #include "llvm/CodeGen/MachineLocation.h" #include "llvm/Target/TargetInstrInfo.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetOptions.h" #include "llvm/DerivedTypes.h" #include "llvm/GlobalVariable.h" #include "llvm/Intrinsics.h" @@ -1527,6 +1528,12 @@ void MachineModuleInfo::AnalyzeModule(Module &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. /// void MachineModuleInfo::SetupCompileUnits(Module &M) { |