mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Fix up TargetLoweringObjectFile ctors to properly initialize fields.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135068 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,7 +52,7 @@ protected:
|
|||||||
const MCSection *MergeableConst8Section;
|
const MCSection *MergeableConst8Section;
|
||||||
const MCSection *MergeableConst16Section;
|
const MCSection *MergeableConst16Section;
|
||||||
public:
|
public:
|
||||||
TargetLoweringObjectFileELF() {}
|
TargetLoweringObjectFileELF();
|
||||||
~TargetLoweringObjectFileELF() {}
|
~TargetLoweringObjectFileELF() {}
|
||||||
|
|
||||||
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||||
@@ -131,7 +131,7 @@ class TargetLoweringObjectFileMachO : public TargetLoweringObjectFile {
|
|||||||
const MCSection *LazySymbolPointerSection;
|
const MCSection *LazySymbolPointerSection;
|
||||||
const MCSection *NonLazySymbolPointerSection;
|
const MCSection *NonLazySymbolPointerSection;
|
||||||
public:
|
public:
|
||||||
TargetLoweringObjectFileMachO() {}
|
TargetLoweringObjectFileMachO();
|
||||||
~TargetLoweringObjectFileMachO() {}
|
~TargetLoweringObjectFileMachO() {}
|
||||||
|
|
||||||
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||||
@@ -207,7 +207,7 @@ class TargetLoweringObjectFileCOFF : public TargetLoweringObjectFile {
|
|||||||
const MCSection *PDataSection;
|
const MCSection *PDataSection;
|
||||||
const MCSection *XDataSection;
|
const MCSection *XDataSection;
|
||||||
public:
|
public:
|
||||||
TargetLoweringObjectFileCOFF() {}
|
TargetLoweringObjectFileCOFF();
|
||||||
~TargetLoweringObjectFileCOFF() {}
|
~TargetLoweringObjectFileCOFF() {}
|
||||||
|
|
||||||
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
virtual void Initialize(MCContext &Ctx, const TargetMachine &TM);
|
||||||
|
@@ -43,6 +43,19 @@ using namespace dwarf;
|
|||||||
// ELF
|
// ELF
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
TargetLoweringObjectFileELF::TargetLoweringObjectFileELF()
|
||||||
|
: TargetLoweringObjectFile(),
|
||||||
|
TLSDataSection(0),
|
||||||
|
TLSBSSSection(0),
|
||||||
|
DataRelSection(0),
|
||||||
|
DataRelLocalSection(0),
|
||||||
|
DataRelROSection(0),
|
||||||
|
DataRelROLocalSection(0),
|
||||||
|
MergeableConst4Section(0),
|
||||||
|
MergeableConst8Section(0),
|
||||||
|
MergeableConst16Section(0) {
|
||||||
|
}
|
||||||
|
|
||||||
void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx,
|
void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx,
|
||||||
const TargetMachine &TM) {
|
const TargetMachine &TM) {
|
||||||
TargetLoweringObjectFile::Initialize(Ctx, TM);
|
TargetLoweringObjectFile::Initialize(Ctx, TM);
|
||||||
@@ -480,6 +493,27 @@ getExprForDwarfGlobalReference(const GlobalValue *GV, Mangler *Mang,
|
|||||||
// MachO
|
// MachO
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
TargetLoweringObjectFileMachO::TargetLoweringObjectFileMachO()
|
||||||
|
: TargetLoweringObjectFile(),
|
||||||
|
TLSDataSection(0),
|
||||||
|
TLSBSSSection(0),
|
||||||
|
TLSTLVSection(0),
|
||||||
|
TLSThreadInitSection(0),
|
||||||
|
CStringSection(0),
|
||||||
|
UStringSection(0),
|
||||||
|
TextCoalSection(0),
|
||||||
|
ConstTextCoalSection(0),
|
||||||
|
ConstDataSection(0),
|
||||||
|
DataCoalSection(0),
|
||||||
|
DataCommonSection(0),
|
||||||
|
DataBSSSection(0),
|
||||||
|
FourByteConstantSection(0),
|
||||||
|
EightByteConstantSection(0),
|
||||||
|
SixteenByteConstantSection(0),
|
||||||
|
LazySymbolPointerSection(0),
|
||||||
|
NonLazySymbolPointerSection(0) {
|
||||||
|
}
|
||||||
|
|
||||||
void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
|
void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
|
||||||
const TargetMachine &TM) {
|
const TargetMachine &TM) {
|
||||||
IsFunctionEHFrameSymbolPrivate = false;
|
IsFunctionEHFrameSymbolPrivate = false;
|
||||||
@@ -891,6 +925,13 @@ unsigned TargetLoweringObjectFileMachO::getTTypeEncoding() const {
|
|||||||
// COFF
|
// COFF
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
TargetLoweringObjectFileCOFF::TargetLoweringObjectFileCOFF()
|
||||||
|
: TargetLoweringObjectFile(),
|
||||||
|
DrectveSection(0),
|
||||||
|
PDataSection(0),
|
||||||
|
XDataSection(0) {
|
||||||
|
}
|
||||||
|
|
||||||
void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx,
|
void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx,
|
||||||
const TargetMachine &TM) {
|
const TargetMachine &TM) {
|
||||||
TargetLoweringObjectFile::Initialize(Ctx, TM);
|
TargetLoweringObjectFile::Initialize(Ctx, TM);
|
||||||
|
@@ -35,32 +35,32 @@ using namespace llvm;
|
|||||||
// Generic Code
|
// Generic Code
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
TargetLoweringObjectFile::TargetLoweringObjectFile() : Ctx(0) {
|
TargetLoweringObjectFile::TargetLoweringObjectFile() :
|
||||||
TextSection = 0;
|
Ctx(0),
|
||||||
DataSection = 0;
|
TextSection(0),
|
||||||
BSSSection = 0;
|
DataSection(0),
|
||||||
ReadOnlySection = 0;
|
BSSSection(0),
|
||||||
StaticCtorSection = 0;
|
ReadOnlySection(0),
|
||||||
StaticDtorSection = 0;
|
StaticCtorSection(0),
|
||||||
LSDASection = 0;
|
StaticDtorSection(0),
|
||||||
CompactUnwindSection = 0;
|
LSDASection(0),
|
||||||
|
CompactUnwindSection(0),
|
||||||
CommDirectiveSupportsAlignment = true;
|
DwarfAbbrevSection(0),
|
||||||
DwarfAbbrevSection = 0;
|
DwarfInfoSection(0),
|
||||||
DwarfInfoSection = 0;
|
DwarfLineSection(0),
|
||||||
DwarfLineSection = 0;
|
DwarfFrameSection(0),
|
||||||
DwarfFrameSection = 0;
|
DwarfPubNamesSection(0),
|
||||||
DwarfPubNamesSection = 0;
|
DwarfPubTypesSection(0),
|
||||||
DwarfPubTypesSection = 0;
|
DwarfDebugInlineSection(0),
|
||||||
DwarfDebugInlineSection = 0;
|
DwarfStrSection(0),
|
||||||
DwarfStrSection = 0;
|
DwarfLocSection(0),
|
||||||
DwarfLocSection = 0;
|
DwarfARangesSection(0),
|
||||||
DwarfARangesSection = 0;
|
DwarfRangesSection(0),
|
||||||
DwarfRangesSection = 0;
|
DwarfMacroInfoSection(0),
|
||||||
DwarfMacroInfoSection = 0;
|
TLSExtraDataSection(0),
|
||||||
|
CommDirectiveSupportsAlignment(true),
|
||||||
IsFunctionEHFrameSymbolPrivate = true;
|
SupportsWeakOmittedEHFrame(true),
|
||||||
SupportsWeakOmittedEHFrame = true;
|
IsFunctionEHFrameSymbolPrivate(true) {
|
||||||
}
|
}
|
||||||
|
|
||||||
TargetLoweringObjectFile::~TargetLoweringObjectFile() {
|
TargetLoweringObjectFile::~TargetLoweringObjectFile() {
|
||||||
|
Reference in New Issue
Block a user