From ee23de6c36e2288df60e3ce6adde1c6d7b524a52 Mon Sep 17 00:00:00 2001 From: Jim Laskey Date: Mon, 29 Jan 2007 23:40:33 +0000 Subject: Out of line function. llvm-svn: 33641 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index 065d6cf..15ea9b8 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) { -- cgit v1.1