aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDwarf.cpp
diff options
context:
space:
mode:
authorShubham Sandeep Rastogi <srastogi22@apple.com>2022-12-22 14:23:34 -0800
committerShubham Sandeep Rastogi <srastogi22@apple.com>2022-12-22 14:23:34 -0800
commitb27e0b2e6703710c140aefd2990091f1779841ac (patch)
treeaa93ff9321ac543389b1b8cda0044e707a1c14e1 /llvm/lib/MC/MCDwarf.cpp
parentd64d3c5a8f81fb07f1455ccb9f4489109cadee72 (diff)
downloadllvm-b27e0b2e6703710c140aefd2990091f1779841ac.zip
llvm-b27e0b2e6703710c140aefd2990091f1779841ac.tar.gz
llvm-b27e0b2e6703710c140aefd2990091f1779841ac.tar.bz2
Revert "Emit unwind information in the .debug_frame section when the .cfi_sections .debug_frame directive is used."
This reverts commit d2cbdb6bef31bdc3254daf57148225ea4b34520c. This is because we are seeing linker crashes in the internal apple bots.
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r--llvm/lib/MC/MCDwarf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp
index 7d7e790..a3ecebb 100644
--- a/llvm/lib/MC/MCDwarf.cpp
+++ b/llvm/lib/MC/MCDwarf.cpp
@@ -1860,7 +1860,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB,
// Emit the compact unwind info if available.
bool NeedsEHFrameSection = !MOFI->getSupportsCompactUnwindWithoutEHFrame();
- if (MOFI->getCompactUnwindSection()) {
+ if (IsEH && MOFI->getCompactUnwindSection()) {
Streamer.generateCompactUnwindEncodings(MAB);
bool SectionEmitted = false;
for (const MCDwarfFrameInfo &Frame : FrameArray) {