summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
diff options
context:
space:
mode:
authorDavid Candler <david.candler@arm.com>2019-10-31 08:55:57 +0000
committerDavid Candler <david.candler@arm.com>2019-10-31 09:48:30 +0000
commit92aa0c2dbcb723d102c508f6e7559330b637f912 (patch)
treec4935901211b87e2c4988d5a01110f9d3ce300f3 /llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
parent9c739252261ea762d1bbbd8234d93c9038711fcd (diff)
downloadbcm5719-llvm-92aa0c2dbcb723d102c508f6e7559330b637f912.tar.gz
bcm5719-llvm-92aa0c2dbcb723d102c508f6e7559330b637f912.zip
[cfi] Add flag to always generate .debug_frame
This adds a flag to LLVM and clang to always generate a .debug_frame section, even if other debug information is not being generated. In situations where .eh_frame would normally be emitted, both .debug_frame and .eh_frame will be used. Differential Revision: https://reviews.llvm.org/D67216
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCFrameLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
index 06a4d183e78..b62c2fea04d 100644
--- a/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
@@ -782,8 +782,7 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF,
MachineModuleInfo &MMI = MF.getMMI();
const MCRegisterInfo *MRI = MMI.getContext().getRegisterInfo();
DebugLoc dl;
- bool needsCFI = MMI.hasDebugInfo() ||
- MF.getFunction().needsUnwindTableEntry();
+ bool needsCFI = MF.needsFrameMoves();
// Get processor type.
bool isPPC64 = Subtarget.isPPC64();
OpenPOWER on IntegriCloud