diff options
author | Jez Ng <jezng@fb.com> | 2022-06-12 17:15:56 -0400 |
---|---|---|
committer | Jez Ng <jezng@fb.com> | 2022-06-12 17:24:19 -0400 |
commit | d4bcb45db78dc7ca371224cb01bea8dcb14e0698 (patch) | |
tree | 69b902b11a6c33ee526572764d938dabb2e3969b /llvm/lib/MC/MCDwarf.cpp | |
parent | 775a22e32a71b1592bcc254c1cfcb037ac944aa6 (diff) | |
download | llvm-d4bcb45db78dc7ca371224cb01bea8dcb14e0698.zip llvm-d4bcb45db78dc7ca371224cb01bea8dcb14e0698.tar.gz llvm-d4bcb45db78dc7ca371224cb01bea8dcb14e0698.tar.bz2 |
[MC][re-land] Omit DWARF unwind info if compact unwind is present where eligible
This reverts commit d941d597837d9e1405086f008c9bd6a71e7263c9.
Differential Revision: https://reviews.llvm.org/D122258
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index 6152b3e..d151b8b 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -1842,8 +1842,6 @@ template <> struct DenseMapInfo<CIEKey> { void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB, bool IsEH) { - Streamer.generateCompactUnwindEncodings(MAB); - MCContext &Context = Streamer.getContext(); const MCObjectFileInfo *MOFI = Context.getObjectFileInfo(); const MCAsmInfo *AsmInfo = Context.getAsmInfo(); @@ -1853,6 +1851,7 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB, // Emit the compact unwind info if available. bool NeedsEHFrameSection = !MOFI->getSupportsCompactUnwindWithoutEHFrame(); if (IsEH && MOFI->getCompactUnwindSection()) { + Streamer.generateCompactUnwindEncodings(MAB); bool SectionEmitted = false; for (const MCDwarfFrameInfo &Frame : FrameArray) { if (Frame.CompactUnwindEncoding == 0) continue; |