mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Add an out-of-line virtual method for X86DwarfWriter to give it a home.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -44,6 +44,10 @@ AsmWriterFlavor("x86-asm-syntax",
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Out of line virtual function to home classes.
|
||||||
|
void X86DwarfWriter::virtfn() {}
|
||||||
|
|
||||||
|
|
||||||
/// doInitialization
|
/// doInitialization
|
||||||
bool X86SharedAsmPrinter::doInitialization(Module &M) {
|
bool X86SharedAsmPrinter::doInitialization(Module &M) {
|
||||||
PrivateGlobalPrefix = ".L";
|
PrivateGlobalPrefix = ".L";
|
||||||
|
@ -32,25 +32,23 @@ extern Statistic<> EmittedInsts;
|
|||||||
/// X86DwarfWriter - Dwarf debug info writer customized for Darwin/Mac OS X
|
/// X86DwarfWriter - Dwarf debug info writer customized for Darwin/Mac OS X
|
||||||
///
|
///
|
||||||
struct X86DwarfWriter : public DwarfWriter {
|
struct X86DwarfWriter : public DwarfWriter {
|
||||||
// Ctor.
|
X86DwarfWriter(std::ostream &o, AsmPrinter *ap) : DwarfWriter(o, ap) {
|
||||||
X86DwarfWriter(std::ostream &o, AsmPrinter *ap)
|
needsSet = true;
|
||||||
: DwarfWriter(o, ap)
|
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
|
||||||
{
|
DwarfInfoSection = ".section __DWARFA,__debug_info";
|
||||||
needsSet = true;
|
DwarfLineSection = ".section __DWARFA,__debug_line";
|
||||||
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
|
DwarfFrameSection = ".section __DWARFA,__debug_frame";
|
||||||
DwarfInfoSection = ".section __DWARFA,__debug_info";
|
DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames";
|
||||||
DwarfLineSection = ".section __DWARFA,__debug_line";
|
DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes";
|
||||||
DwarfFrameSection = ".section __DWARFA,__debug_frame";
|
DwarfStrSection = ".section __DWARFA,__debug_str";
|
||||||
DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames";
|
DwarfLocSection = ".section __DWARFA,__debug_loc";
|
||||||
DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes";
|
DwarfARangesSection = ".section __DWARFA,__debug_aranges";
|
||||||
DwarfStrSection = ".section __DWARFA,__debug_str";
|
DwarfRangesSection = ".section __DWARFA,__debug_ranges";
|
||||||
DwarfLocSection = ".section __DWARFA,__debug_loc";
|
DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo";
|
||||||
DwarfARangesSection = ".section __DWARFA,__debug_aranges";
|
TextSection = ".text";
|
||||||
DwarfRangesSection = ".section __DWARFA,__debug_ranges";
|
DataSection = ".data";
|
||||||
DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo";
|
}
|
||||||
TextSection = ".text";
|
virtual void virtfn(); // out of line virtual fn.
|
||||||
DataSection = ".data";
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct X86SharedAsmPrinter : public AsmPrinter {
|
struct X86SharedAsmPrinter : public AsmPrinter {
|
||||||
|
Reference in New Issue
Block a user