std::vector<LocalCommon> LocalCommons;
SmallPtrSet<MCSymbol *, 16> BindingExplicitlySet;
-
- void SetSectionData();
- void SetSectionText();
- void SetSectionBss();
};
MCELFStreamer *createARMELFStreamer(MCContext &Context, MCAsmBackend &TAB,
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) {