diff options
author | Dale Johannesen <dalej@apple.com> | 2008-04-08 00:10:24 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-04-08 00:10:24 +0000 |
commit | 4e1b79459fcf72216cdc42a59953e172c60e15ca (patch) | |
tree | 6d330b1c9b9699f92a180db1468821d536b70cc8 /lib/Target/PowerPC/PPCRegisterInfo.cpp | |
parent | 9b01cc0ede3bfef32ce46159670dedc3e9769a64 (diff) | |
download | external_llvm-4e1b79459fcf72216cdc42a59953e172c60e15ca.zip external_llvm-4e1b79459fcf72216cdc42a59953e172c60e15ca.tar.gz external_llvm-4e1b79459fcf72216cdc42a59953e172c60e15ca.tar.bz2 |
Implement new llc flag -disable-required-unwind-tables.
Corresponds to -fno-unwind-tables (usually default in gcc).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49361 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index 8ef8b3f..8b4fb6a 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -948,7 +948,8 @@ PPCRegisterInfo::emitPrologue(MachineFunction &MF) const { MachineFrameInfo *MFI = MF.getFrameInfo(); MachineModuleInfo *MMI = MFI->getMachineModuleInfo(); bool needsFrameMoves = (MMI && MMI->hasDebugInfo()) || - !MF.getFunction()->doesNotThrow(); + !MF.getFunction()->doesNotThrow() || + !UnwindTablesOptional; // Prepare for frame info. unsigned FrameLabelId = 0; |