aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCStreamer.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-02-25 22:29:49 -0800
committerFangrui Song <i@maskray.me>2021-02-25 22:29:49 -0800
commit880c9c56c1172418853cc81eeced492b4f0cefc2 (patch)
treeca598c80b15939dfa05129a7fcf510496811c8e3 /llvm/lib/MC/MCStreamer.cpp
parent8459b8ef39f4d745f2aab8c43821b3389b0e5a74 (diff)
downloadllvm-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.cpp4
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())