[llvm] b90228e - [WebAssembly][MC] Remove useless overrides in MCWasmStreamer

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 07:10:20 PST 2020


Author: Andy Wingo
Date: 2020-11-17T07:09:49-08:00
New Revision: b90228e4113764b4126e958418022411de6275c3

URL: https://github.com/llvm/llvm-project/commit/b90228e4113764b4126e958418022411de6275c3
DIFF: https://github.com/llvm/llvm-project/commit/b90228e4113764b4126e958418022411de6275c3.diff

LOG: [WebAssembly][MC] Remove useless overrides in MCWasmStreamer

Differential Revision: https://reviews.llvm.org/D91604

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCWasmStreamer.h
    llvm/lib/MC/MCWasmStreamer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCWasmStreamer.h b/llvm/include/llvm/MC/MCWasmStreamer.h
index 61075e7a5732b..6651f071f799d 100644
--- a/llvm/include/llvm/MC/MCWasmStreamer.h
+++ b/llvm/include/llvm/MC/MCWasmStreamer.h
@@ -59,13 +59,9 @@ class MCWasmStreamer : public MCObjectStreamer {
                     SMLoc Loc = SMLoc()) override;
   void emitTBSSSymbol(MCSection *Section, MCSymbol *Symbol, uint64_t Size,
                       unsigned ByteAlignment = 0) override;
-  void emitValueImpl(const MCExpr *Value, unsigned Size,
-                     SMLoc Loc = SMLoc()) override;
 
   void emitIdent(StringRef IdentString) override;
 
-  void emitValueToAlignment(unsigned, int64_t, unsigned, unsigned) override;
-
   void finishImpl() override;
 
 private:

diff  --git a/llvm/lib/MC/MCWasmStreamer.cpp b/llvm/lib/MC/MCWasmStreamer.cpp
index bf8b142b355a3..e3d2439cef817 100644
--- a/llvm/lib/MC/MCWasmStreamer.cpp
+++ b/llvm/lib/MC/MCWasmStreamer.cpp
@@ -148,18 +148,6 @@ void MCWasmStreamer::emitLocalCommonSymbol(MCSymbol *S, uint64_t Size,
   llvm_unreachable("Local common symbols are not yet implemented for Wasm");
 }
 
-void MCWasmStreamer::emitValueImpl(const MCExpr *Value, unsigned Size,
-                                   SMLoc Loc) {
-  MCObjectStreamer::emitValueImpl(Value, Size, Loc);
-}
-
-void MCWasmStreamer::emitValueToAlignment(unsigned ByteAlignment, int64_t Value,
-                                          unsigned ValueSize,
-                                          unsigned MaxBytesToEmit) {
-  MCObjectStreamer::emitValueToAlignment(ByteAlignment, Value, ValueSize,
-                                         MaxBytesToEmit);
-}
-
 void MCWasmStreamer::emitIdent(StringRef IdentString) {
   // TODO(sbc): Add the ident section once we support mergable strings
   // sections in the object format


        


More information about the llvm-commits mailing list