[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp MachineModuleInfo.cpp

Jim Laskey jlaskey at apple.com
Mon Jan 29 15:40:52 PST 2007



Changes in directory llvm/lib/CodeGen:

DwarfWriter.cpp updated: 1.121 -> 1.122
MachineModuleInfo.cpp updated: 1.1 -> 1.2
---
Log message:

Out of line function.

---
Diffs of the changes:  (+8 -0)

 DwarfWriter.cpp       |    1 +
 MachineModuleInfo.cpp |    7 +++++++
 2 files changed, 8 insertions(+)


Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.121 llvm/lib/CodeGen/DwarfWriter.cpp:1.122
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.121	Mon Jan 29 17:20:22 2007
+++ llvm/lib/CodeGen/DwarfWriter.cpp	Mon Jan 29 17:40:33 2007
@@ -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;


Index: llvm/lib/CodeGen/MachineModuleInfo.cpp
diff -u llvm/lib/CodeGen/MachineModuleInfo.cpp:1.1 llvm/lib/CodeGen/MachineModuleInfo.cpp:1.2
--- llvm/lib/CodeGen/MachineModuleInfo.cpp:1.1	Fri Jan 26 15:38:26 2007
+++ llvm/lib/CodeGen/MachineModuleInfo.cpp	Mon Jan 29 17:40:33 2007
@@ -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 @@
   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) {






More information about the llvm-commits mailing list