Remove getOrCreateSymbolData. There is no MCSymbolData anymore.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Jun 2015 19:03:11 +0000 (19:03 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 3 Jun 2015 19:03:11 +0000 (19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238952 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCObjectStreamer.h
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp

index a4d650b0219acb62735dffd906b0a8e174ca0ead..462b3b484c58b9dc3b0015e2d7cdf1054e15e642 100644 (file)
@@ -56,9 +56,6 @@ public:
   /// Object streamers require the integrated assembler.
   bool isIntegratedAssemblerRequired() const override { return true; }
 
-  void getOrCreateSymbolData(const MCSymbol *Symbol) {
-    getAssembler().registerSymbol(*Symbol);
-  }
   void EmitFrames(MCAsmBackend *MAB);
   void EmitCFISections(bool EH, bool Debug) override;
 
index a15b1ad808ed882fbaf76b2364d01a9022760825..70f0cd11b3354132dac54186702c6c91df5fdf2e 100644 (file)
@@ -970,7 +970,7 @@ void ARMTargetELFStreamer::emitLabel(MCSymbol *Symbol) {
   if (!Streamer.IsThumb)
     return;
 
-  Streamer.getOrCreateSymbolData(Symbol);
+  Streamer.getAssembler().registerSymbol(*Symbol);
   unsigned Type = cast<MCSymbolELF>(Symbol)->getType();
   if (Type == ELF_STT_Func || Type == ELF_STT_GnuIFunc)
     Streamer.EmitThumbFunc(Symbol);
index 1cba713ec8ff49ba1983899ebdcbf068aee13542..d1e3a47f94b2636ffbf3591425b75d9ee2d0b0eb 100644 (file)
@@ -43,7 +43,7 @@ void MipsELFStreamer::createPendingLabelRelocs() {
   if (ELFTargetStreamer->isMicroMipsEnabled()) {
     for (auto *L : Labels) {
       auto *Label = cast<MCSymbolELF>(L);
-      getOrCreateSymbolData(Label);
+      getAssembler().registerSymbol(*Label);
       // The "other" values are stored in the last 6 bits of the second byte.
       // The traditional defines for STO values assume the full byte and thus
       // the shift to pack it.
index 8d9f80a7e6faa9d4f83300dfbafa1e55526ad29e..787d9a7b4500f13e0aafce65fe1f2a419b530caf 100644 (file)
@@ -457,7 +457,7 @@ void MipsTargetELFStreamer::emitLabel(MCSymbol *S) {
   auto *Symbol = cast<MCSymbolELF>(S);
   if (!isMicroMipsEnabled())
     return;
-  getStreamer().getOrCreateSymbolData(Symbol);
+  getStreamer().getAssembler().registerSymbol(*Symbol);
   uint8_t Type = Symbol->getType();
   if (Type != ELF::STT_FUNC)
     return;