[llvm] 94d1692 - [MC] Remove unused MCStreamer::SwitchSection

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 21:26:01 PDT 2022


Author: Fangrui Song
Date: 2022-06-14T21:25:56-07:00
New Revision: 94d1692aa155adf3b69609d142762b8c696e0710

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

LOG: [MC] Remove unused MCStreamer::SwitchSection

switchSection should be used instead.

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCStreamer.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCStreamer.h b/llvm/include/llvm/MC/MCStreamer.h
index c55f68f448574..e71014b8cccf1 100644
--- a/llvm/include/llvm/MC/MCStreamer.h
+++ b/llvm/include/llvm/MC/MCStreamer.h
@@ -446,9 +446,6 @@ class MCStreamer {
   /// This corresponds to assembler directives like .section, .text, etc.
   virtual void switchSection(MCSection *Section,
                              const MCExpr *Subsection = nullptr);
-  void SwitchSection(MCSection *Section, const MCExpr *Subsection = nullptr) {
-    switchSection(Section, Subsection);
-  }
 
   /// Set the current section where code is being emitted to \p Section.
   /// This is required to update CurSection. This version does not call


        


More information about the llvm-commits mailing list