summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCWasmStreamer.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2017-02-27 22:44:37 +0000
committerDan Gohman <dan433584@gmail.com>2017-02-27 22:44:37 +0000
commit1f4e26fc58ccdfb38858545fd0596f366ade1925 (patch)
treef22b83d432570680dd1afc8583035be349501c6b /llvm/lib/MC/MCWasmStreamer.cpp
parentd37dc2f7735935905328214abea02c4e4ed6451c (diff)
downloadbcm5719-llvm-1f4e26fc58ccdfb38858545fd0596f366ade1925.tar.gz
bcm5719-llvm-1f4e26fc58ccdfb38858545fd0596f366ade1925.zip
[MC] Factor out non-COFF handling of COFF-specific directives.
Instead of requiring every non-COFF MCObjectStreamer to implement the COFF hooks just to do an llvm_unreachable to say that they're not supported, do the llvm_unreachable in the default implementation, as suggested by rnk in https://reviews.llvm.org/D26722. llvm-svn: 296403
Diffstat (limited to 'llvm/lib/MC/MCWasmStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCWasmStreamer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp
index 11a00adca65..708050b399b 100644
--- a/llvm/lib/MC/MCWasmStreamer.cpp
+++ b/llvm/lib/MC/MCWasmStreamer.cpp
@@ -212,22 +212,6 @@ void MCWasmStreamer::EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {
llvm_unreachable("Wasm doesn't support this directive");
}
-void MCWasmStreamer::BeginCOFFSymbolDef(const MCSymbol *Symbol) {
- llvm_unreachable("Wasm doesn't support this directive");
-}
-
-void MCWasmStreamer::EmitCOFFSymbolStorageClass(int StorageClass) {
- llvm_unreachable("Wasm doesn't support this directive");
-}
-
-void MCWasmStreamer::EmitCOFFSymbolType(int Type) {
- llvm_unreachable("Wasm doesn't support this directive");
-}
-
-void MCWasmStreamer::EndCOFFSymbolDef() {
- llvm_unreachable("Wasm doesn't support this directive");
-}
-
void MCWasmStreamer::EmitZerofill(MCSection *Section, MCSymbol *Symbol,
uint64_t Size, unsigned ByteAlignment) {
llvm_unreachable("Wasm doesn't support this directive");
OpenPOWER on IntegriCloud