Inline functions that are only called once.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Jan 2014 02:18:40 +0000 (02:18 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 24 Jan 2014 02:18:40 +0000 (02:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199965 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCELFStreamer.h
lib/MC/MCELFStreamer.cpp

index c9ec720b9be8dfbc3e1e3e3b9447be045897e8f6..c24119c330f905621cbb48d10bfa943d9d16853c 100644 (file)
@@ -106,10 +106,6 @@ private:
   std::vector<LocalCommon> LocalCommons;
 
   SmallPtrSet<MCSymbol *, 16> BindingExplicitlySet;
-
-  void SetSectionData();
-  void SetSectionText();
-  void SetSectionBss();
 };
 
 MCELFStreamer *createARMELFStreamer(MCContext &Context, MCAsmBackend &TAB,
index 47ac181346ddfbf48d6b9eeffc7d360f08098054..d2c2395a7cfeb8ec0d98f9b1de803f741885b777 100644 (file)
 
 using namespace llvm;
 
-inline void MCELFStreamer::SetSectionData() {
-  SwitchSection(getContext().getObjectFileInfo()->getDataSection());
-  EmitCodeAlignment(4, 0);
+MCELFStreamer::~MCELFStreamer() {
 }
 
-inline void MCELFStreamer::SetSectionText() {
+void MCELFStreamer::InitSections() {
+  // This emulates the same behavior of GNU as. This makes it easier
+  // to compare the output as the major sections are in the same order.
   SwitchSection(getContext().getObjectFileInfo()->getTextSection());
   EmitCodeAlignment(4, 0);
-}
 
-inline void MCELFStreamer::SetSectionBss() {
-  SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
+  SwitchSection(getContext().getObjectFileInfo()->getDataSection());
   EmitCodeAlignment(4, 0);
-}
 
-MCELFStreamer::~MCELFStreamer() {
-}
+  SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
+  EmitCodeAlignment(4, 0);
 
-void MCELFStreamer::InitSections() {
-  // This emulates the same behavior of GNU as. This makes it easier
-  // to compare the output as the major sections are in the same order.
-  SetSectionText();
-  SetSectionData();
-  SetSectionBss();
-  SetSectionText();
+  SwitchSection(getContext().getObjectFileInfo()->getTextSection());
 }
 
 void MCELFStreamer::EmitLabel(MCSymbol *Symbol) {