[llvm] b23d17f - [MC] Add emitXCOFFSymbolLinkageWithVisibility to MCNullStreamer
Jake Egan via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 6 06:26:48 PST 2021
Author: Jake Egan
Date: 2021-12-06T09:26:35-05:00
New Revision: b23d17f6b5f7748645996f54c79dc0b58aa5a9c2
URL: https://github.com/llvm/llvm-project/commit/b23d17f6b5f7748645996f54c79dc0b58aa5a9c2
DIFF: https://github.com/llvm/llvm-project/commit/b23d17f6b5f7748645996f54c79dc0b58aa5a9c2.diff
LOG: [MC] Add emitXCOFFSymbolLinkageWithVisibility to MCNullStreamer
This patch adds `emitXCOFFSymbolLinkageWithVisibility` to MCNullStreamer to fix llvm_unreachable getting reached when using option `-filetype=null` on AIX.
Reviewed By: DiggerLin
Differential Revision: https://reviews.llvm.org/D114876
Added:
Modified:
llvm/lib/MC/MCNullStreamer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/MC/MCNullStreamer.cpp b/llvm/lib/MC/MCNullStreamer.cpp
index 291d840b4f4be..40b7eba58b03b 100644
--- a/llvm/lib/MC/MCNullStreamer.cpp
+++ b/llvm/lib/MC/MCNullStreamer.cpp
@@ -40,6 +40,9 @@ namespace {
void EmitCOFFSymbolStorageClass(int StorageClass) override {}
void EmitCOFFSymbolType(int Type) override {}
void EndCOFFSymbolDef() override {}
+ void
+ emitXCOFFSymbolLinkageWithVisibility(MCSymbol *Symbol, MCSymbolAttr Linkage,
+ MCSymbolAttr Visibility) override {}
};
}
More information about the llvm-commits
mailing list