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 | ee23de6c36e2288df60e3ce6adde1c6d7b524a52 (patch) | |
tree | ae0400f3cf00277a902f941fec82c30b636555c7 | |
parent | b64c43361914b5e706863a700442d320484e36f5 (diff) | |
download | bcm5719-llvm-ee23de6c36e2288df60e3ce6adde1c6d7b524a52.tar.gz bcm5719-llvm-ee23de6c36e2288df60e3ce6adde1c6d7b524a52.zip |
Out of line function.
llvm-svn: 33641
-rw-r--r-- | llvm/include/llvm/CodeGen/MachineModuleInfo.h | 3 | ||||
-rw-r--r-- | llvm/lib/CodeGen/DwarfWriter.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/CodeGen/MachineModuleInfo.cpp | 7 |
3 files changed, 9 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h index 25a74e84517..8617b388087 100644 --- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h +++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h @@ -36,7 +36,6 @@ #include "llvm/ADT/UniqueVector.h" #include "llvm/GlobalValue.h" #include "llvm/Pass.h" -#include "llvm/Target/TargetOptions.h" namespace llvm { @@ -1028,7 +1027,7 @@ public: /// needsFrameInfo - Returns true if we need to gather callee-saved register /// move info for the frame. - bool needsFrameInfo() const { return hasDebugInfo() || ExceptionHandling; } + bool needsFrameInfo() const; /// NextLabelID - Return the next unique label id. /// diff --git a/llvm/lib/CodeGen/DwarfWriter.cpp b/llvm/lib/CodeGen/DwarfWriter.cpp index 412bd6aa6cb..2b9cf74f88a 100644 --- a/llvm/lib/CodeGen/DwarfWriter.cpp +++ b/llvm/lib/CodeGen/DwarfWriter.cpp @@ -31,6 +31,7 @@ #include "llvm/Target/TargetData.h" #include "llvm/Target/TargetFrameInfo.h" #include "llvm/Target/TargetMachine.h" +#include "llvm/Target/TargetOptions.h" #include <ostream> #include <string> using namespace llvm; diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 065d6cf295e..15ea9b828de 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/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) { |