mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-21 12:38:45 +00:00
Move a non-trivial virtual function out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a46f6f381
commit
b3d108b39a
@ -344,20 +344,12 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// SwitchSection - Set the current section where code is being emitted to
|
/// Set the current section where code is being emitted to @p Section. This
|
||||||
/// @p Section. This is required to update CurSection.
|
/// is required to update CurSection.
|
||||||
///
|
///
|
||||||
/// This corresponds to assembler directives like .section, .text, etc.
|
/// This corresponds to assembler directives like .section, .text, etc.
|
||||||
virtual void SwitchSection(const MCSection *Section,
|
virtual void SwitchSection(const MCSection *Section,
|
||||||
const MCExpr *Subsection = nullptr) {
|
const MCExpr *Subsection = nullptr);
|
||||||
assert(Section && "Cannot switch to a null section!");
|
|
||||||
MCSectionSubPair curSection = SectionStack.back().first;
|
|
||||||
SectionStack.back().second = curSection;
|
|
||||||
if (MCSectionSubPair(Section, Subsection) != curSection) {
|
|
||||||
SectionStack.back().first = MCSectionSubPair(Section, Subsection);
|
|
||||||
ChangeSection(Section, Subsection);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// SwitchSectionNoChange - Set the current section where code is being
|
/// SwitchSectionNoChange - Set the current section where code is being
|
||||||
/// emitted to @p Section. This is required to update CurSection. This
|
/// emitted to @p Section. This is required to update CurSection. This
|
||||||
|
@ -661,3 +661,14 @@ void MCStreamer::EmitBundleAlignMode(unsigned AlignPow2) {}
|
|||||||
void MCStreamer::EmitBundleLock(bool AlignToEnd) {}
|
void MCStreamer::EmitBundleLock(bool AlignToEnd) {}
|
||||||
void MCStreamer::FinishImpl() {}
|
void MCStreamer::FinishImpl() {}
|
||||||
void MCStreamer::EmitBundleUnlock() {}
|
void MCStreamer::EmitBundleUnlock() {}
|
||||||
|
|
||||||
|
void MCStreamer::SwitchSection(const MCSection *Section,
|
||||||
|
const MCExpr *Subsection) {
|
||||||
|
assert(Section && "Cannot switch to a null section!");
|
||||||
|
MCSectionSubPair curSection = SectionStack.back().first;
|
||||||
|
SectionStack.back().second = curSection;
|
||||||
|
if (MCSectionSubPair(Section, Subsection) != curSection) {
|
||||||
|
SectionStack.back().first = MCSectionSubPair(Section, Subsection);
|
||||||
|
ChangeSection(Section, Subsection);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user