[llvm] r297921 - Simplify/make more explicit (by making less explicit in some ways) some function calls

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 17:43:19 PDT 2017


Author: dblaikie
Date: Wed Mar 15 19:43:19 2017
New Revision: 297921

URL: http://llvm.org/viewvc/llvm-project?rev=297921&view=rev
Log:
Simplify/make more explicit (by making less explicit in some ways) some function calls

Modified:
    llvm/trunk/lib/MC/MCELFStreamer.cpp
    llvm/trunk/lib/MC/MCMachOStreamer.cpp

Modified: llvm/trunk/lib/MC/MCELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFStreamer.cpp?rev=297921&r1=297920&r2=297921&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCELFStreamer.cpp Wed Mar 15 19:43:19 2017
@@ -143,7 +143,7 @@ void MCELFStreamer::ChangeSection(MCSect
   if (Grp)
     Asm.registerSymbol(*Grp);
 
-  this->MCObjectStreamer::ChangeSection(Section, Subsection);
+  changeSectionImpl(Section, Subsection);
   Asm.registerSymbol(*Section->getBeginSymbol());
 }
 

Modified: llvm/trunk/lib/MC/MCMachOStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCMachOStreamer.cpp?rev=297921&r1=297920&r2=297921&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCMachOStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCMachOStreamer.cpp Wed Mar 15 19:43:19 2017
@@ -142,7 +142,7 @@ static bool canGoAfterDWARF(const MCSect
 void MCMachOStreamer::ChangeSection(MCSection *Section,
                                     const MCExpr *Subsection) {
   // Change the section normally.
-  bool Created = MCObjectStreamer::changeSectionImpl(Section, Subsection);
+  bool Created = changeSectionImpl(Section, Subsection);
   const MCSectionMachO &MSec = *cast<MCSectionMachO>(Section);
   StringRef SegName = MSec.getSegmentName();
   if (SegName == "__DWARF")




More information about the llvm-commits mailing list