[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineModuleInfo.h
Jim Laskey
jlaskey at apple.com
Mon Jan 29 15:20:41 PST 2007
Changes in directory llvm/include/llvm/CodeGen:
MachineModuleInfo.h updated: 1.1 -> 1.2
---
Log message:
Only gather frame info if debug or eh.
---
Diffs of the changes: (+5 -0)
MachineModuleInfo.h | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/include/llvm/CodeGen/MachineModuleInfo.h
diff -u llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.1 llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.2
--- llvm/include/llvm/CodeGen/MachineModuleInfo.h:1.1 Fri Jan 26 15:38:26 2007
+++ llvm/include/llvm/CodeGen/MachineModuleInfo.h Mon Jan 29 17:20:22 2007
@@ -36,6 +36,7 @@
#include "llvm/ADT/UniqueVector.h"
#include "llvm/GlobalValue.h"
#include "llvm/Pass.h"
+#include "llvm/Target/TargetOptions.h"
namespace llvm {
@@ -1025,6 +1026,10 @@
///
bool hasDebugInfo() const { return !CompileUnits.empty(); }
+ /// needsFrameInfo - Returns true if we need to gather callee-saved register
+ /// move info for the frame.
+ bool needsFrameInfo() const { return hasDebugInfo() || ExceptionHandling; }
+
/// NextLabelID - Return the next unique label id.
///
unsigned NextLabelID() {
More information about the llvm-commits
mailing list