}
/// InitSections - Create the default sections and set the initial one.
- virtual void InitSections() = 0;
+ virtual void InitSections();
/// AssignSection - Sets the symbol's section.
///
// Noop calls.
virtual void ChangeSection(const MCSection *Section,
const MCExpr *Subsection) {}
- virtual void InitSections() {
- SwitchSection(getContext().getObjectFileInfo()->getTextSection());
- }
virtual void EmitAssemblerFlag(MCAssemblerFlag Flag) {}
virtual void EmitThumbFunc(MCSymbol *Func) {}
virtual void EmitSymbolDesc(MCSymbol *Symbol, unsigned DescValue) {}
virtual void ChangeSection(const MCSection *Section,
const MCExpr *Subsection);
- virtual void InitSections() {
- SwitchSection(getContext().getObjectFileInfo()->getTextSection());
- }
-
virtual void EmitLabel(MCSymbol *Symbol);
virtual void EmitDebugLabel(MCSymbol *Symbol);
/// @name MCStreamer Interface
/// @{
- virtual void InitSections();
virtual void EmitLabel(MCSymbol *Symbol);
virtual void EmitDebugLabel(MCSymbol *Symbol);
virtual void EmitEHSymAttributes(const MCSymbol *Symbol,
} // end anonymous namespace.
-void MCMachOStreamer::InitSections() {
- SwitchSection(getContext().getObjectFileInfo()->getTextSection());
-}
-
void MCMachOStreamer::EmitEHSymAttributes(const MCSymbol *Symbol,
MCSymbol *EHSymbol) {
MCSymbolData &SD =
/// @name MCStreamer Interface
/// @{
- virtual void InitSections() {
- }
-
virtual void ChangeSection(const MCSection *Section,
const MCExpr *Subsection) {
}
/// @name MCStreamer Interface
/// @{
- virtual void InitSections();
virtual void EmitLabel(MCSymbol *Symbol);
virtual void EmitDebugLabel(MCSymbol *Symbol);
virtual void EmitZerofill(const MCSection *Section, MCSymbol *Symbol = 0,
} // end anonymous namespace.
-void MCPureStreamer::InitSections() {
- SwitchSection(getContext().getObjectFileInfo()->getTextSection());
-}
-
void MCPureStreamer::EmitLabel(MCSymbol *Symbol) {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
assert(!Symbol->isVariable() && "Cannot emit a variable symbol!");
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCObjectFileInfo.h"
#include "llvm/MC/MCObjectWriter.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/ErrorHandling.h"
MCSymbol *EHSymbol) {
}
+void MCStreamer::InitSections() {
+ SwitchSection(getContext().getObjectFileInfo()->getTextSection());
+}
+
void MCStreamer::AssignSection(MCSymbol *Symbol, const MCSection *Section) {
if (Section)
Symbol->setSection(*Section);