diff options
author | Jim Laskey <jlaskey@mac.com> | 2007-01-29 23:20:22 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2007-01-29 23:20:22 +0000 |
commit | e078d1a14a2633d5fe5b5b9d9dec90669f5c7082 (patch) | |
tree | 666353e2b9fa98c8c835a48203ee7e4eb69b8d7d /include/llvm/CodeGen/MachineModuleInfo.h | |
parent | c874eb54ecf57f493c49934a327e0e4e49f0ff10 (diff) |
Only gather frame info if debug or eh.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineModuleInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineModuleInfo.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineModuleInfo.h b/include/llvm/CodeGen/MachineModuleInfo.h index a1c69083be..25a74e8451 100644 --- a/include/llvm/CodeGen/MachineModuleInfo.h +++ b/include/llvm/CodeGen/MachineModuleInfo.h @@ -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 @@ public: /// 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() { |