mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Inline functions that are only called once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199965 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42e23de4db
commit
5950c6fa48
@ -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,
|
||||
|
@ -35,31 +35,22 @@
|
||||
|
||||
using namespace llvm;
|
||||
|
||||
inline void MCELFStreamer::SetSectionData() {
|
||||
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
||||
EmitCodeAlignment(4, 0);
|
||||
}
|
||||
|
||||
inline void MCELFStreamer::SetSectionText() {
|
||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||
EmitCodeAlignment(4, 0);
|
||||
}
|
||||
|
||||
inline void MCELFStreamer::SetSectionBss() {
|
||||
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
||||
EmitCodeAlignment(4, 0);
|
||||
}
|
||||
|
||||
MCELFStreamer::~MCELFStreamer() {
|
||||
}
|
||||
|
||||
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());
|
||||
EmitCodeAlignment(4, 0);
|
||||
|
||||
SwitchSection(getContext().getObjectFileInfo()->getDataSection());
|
||||
EmitCodeAlignment(4, 0);
|
||||
|
||||
SwitchSection(getContext().getObjectFileInfo()->getBSSSection());
|
||||
EmitCodeAlignment(4, 0);
|
||||
|
||||
SwitchSection(getContext().getObjectFileInfo()->getTextSection());
|
||||
}
|
||||
|
||||
void MCELFStreamer::EmitLabel(MCSymbol *Symbol) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user