mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 22:38:56 +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:
parent
6af022f255
commit
a3b5939caa
@ -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,10 +32,7 @@ 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)
|
|
||||||
: DwarfWriter(o, ap)
|
|
||||||
{
|
|
||||||
needsSet = true;
|
needsSet = true;
|
||||||
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
|
DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
|
||||||
DwarfInfoSection = ".section __DWARFA,__debug_info";
|
DwarfInfoSection = ".section __DWARFA,__debug_info";
|
||||||
@ -51,6 +48,7 @@ X86DwarfWriter(std::ostream &o, AsmPrinter *ap)
|
|||||||
TextSection = ".text";
|
TextSection = ".text";
|
||||||
DataSection = ".data";
|
DataSection = ".data";
|
||||||
}
|
}
|
||||||
|
virtual void virtfn(); // out of line virtual fn.
|
||||||
};
|
};
|
||||||
|
|
||||||
struct X86SharedAsmPrinter : public AsmPrinter {
|
struct X86SharedAsmPrinter : public AsmPrinter {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user