summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.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/MCMachOStreamer.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/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index 5820d97dd79..3ed89c4cccd 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -92,22 +92,6 @@ public:
void EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment) override;
- void BeginCOFFSymbolDef(const MCSymbol *Symbol) override {
- llvm_unreachable("macho doesn't support this directive");
- }
-
- void EmitCOFFSymbolStorageClass(int StorageClass) override {
- llvm_unreachable("macho doesn't support this directive");
- }
-
- void EmitCOFFSymbolType(int Type) override {
- llvm_unreachable("macho doesn't support this directive");
- }
-
- void EndCOFFSymbolDef() override {
- llvm_unreachable("macho doesn't support this directive");
- }
-
void EmitLocalCommonSymbol(MCSymbol *Symbol, uint64_t Size,
unsigned ByteAlignment) override;
void EmitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr,
OpenPOWER on IntegriCloud