diff options
author | Fangrui Song <i@maskray.me> | 2021-02-25 22:29:49 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-02-25 22:29:49 -0800 |
commit | 880c9c56c1172418853cc81eeced492b4f0cefc2 (patch) | |
tree | ca598c80b15939dfa05129a7fcf510496811c8e3 /llvm/lib/MC/MCStreamer.cpp | |
parent | 8459b8ef39f4d745f2aab8c43821b3389b0e5a74 (diff) | |
download | llvm-880c9c56c1172418853cc81eeced492b4f0cefc2.zip llvm-880c9c56c1172418853cc81eeced492b4f0cefc2.tar.gz llvm-880c9c56c1172418853cc81eeced492b4f0cefc2.tar.bz2 |
[MC] Allow .cfi_sections with empty section list
GNU as supports this. This mode silently ignores
.cfi_startproc/.cfi_endproc and .cfi_* in between.
Also drop a diagnostic `in '.cfi_sections' directive`: the diagnostic
already includes the line and it is clear the line is a `.cfi_sections` directive.
Diffstat (limited to 'llvm/lib/MC/MCStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCStreamer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCStreamer.cpp b/llvm/lib/MC/MCStreamer.cpp index 9b9e5b9..b2fc542 100644 --- a/llvm/lib/MC/MCStreamer.cpp +++ b/llvm/lib/MC/MCStreamer.cpp @@ -429,9 +429,7 @@ void MCStreamer::emitLabel(MCSymbol *Symbol, SMLoc Loc) { TS->emitLabel(Symbol); } -void MCStreamer::emitCFISections(bool EH, bool Debug) { - assert(EH || Debug); -} +void MCStreamer::emitCFISections(bool EH, bool Debug) {} void MCStreamer::emitCFIStartProc(bool IsSimple, SMLoc Loc) { if (hasUnfinishedDwarfFrameInfo()) |