summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2015-10-28 22:56:36 +0000
committerTim Northover <tnorthover@apple.com>2015-10-28 22:56:36 +0000
commitf8e47e4868270ee1bea61a5b64f3df5153262a08 (patch)
treeadb4e7c6c66481f3cd0c2d4ee0d01aec0fef532a /llvm/lib/MC/MCDwarf.cpp
parent2253d1c0525d2a30c0a9e6e26237dabc6237b9b4 (diff)
downloadbcm5719-llvm-f8e47e4868270ee1bea61a5b64f3df5153262a08.tar.gz
bcm5719-llvm-f8e47e4868270ee1bea61a5b64f3df5153262a08.zip
ARM: add support for WatchOS's compact unwind information.
llvm-svn: 251573
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index e964032b9d2..8be1f4cbda2 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -1536,6 +1536,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB,
const MCSymbol *DummyDebugKey = nullptr;
NeedsEHFrameSection = !MOFI->getSupportsCompactUnwindWithoutEHFrame();
+ bool CanOmitDwarf = MOFI->getOmitDwarfIfHaveCompactUnwind();
for (unsigned i = 0, n = FrameArray.size(); i < n; ++i) {
const MCDwarfFrameInfo &Frame = FrameArray[i];
@@ -1545,7 +1546,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB,
FDEEnd = nullptr;
}
- if (!NeedsEHFrameSection && Frame.CompactUnwindEncoding !=
+ if (CanOmitDwarf && Frame.CompactUnwindEncoding !=
MOFI->getCompactUnwindDwarfEHFrameOnly())
// Don't generate an EH frame if we don't need one. I.e., it's taken care
// of by the compact unwind encoding.
OpenPOWER on IntegriCloud