aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp4
-rwxr-xr-xlib/Target/X86/X86AsmPrinter.h36
2 files changed, 21 insertions, 19 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 920d8d4468..069b04751a 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -44,6 +44,10 @@ AsmWriterFlavor("x86-asm-syntax",
#endif
);
+// Out of line virtual function to home classes.
+void X86DwarfWriter::virtfn() {}
+
+
/// doInitialization
bool X86SharedAsmPrinter::doInitialization(Module &M) {
PrivateGlobalPrefix = ".L";
diff --git a/lib/Target/X86/X86AsmPrinter.h b/lib/Target/X86/X86AsmPrinter.h
index eee956cd43..272c880175 100755
--- a/lib/Target/X86/X86AsmPrinter.h
+++ b/lib/Target/X86/X86AsmPrinter.h
@@ -32,25 +32,23 @@ extern Statistic<> EmittedInsts;
/// X86DwarfWriter - Dwarf debug info writer customized for Darwin/Mac OS X
///
struct X86DwarfWriter : public DwarfWriter {
- // Ctor.
-X86DwarfWriter(std::ostream &o, AsmPrinter *ap)
- : DwarfWriter(o, ap)
- {
- needsSet = true;
- DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
- DwarfInfoSection = ".section __DWARFA,__debug_info";
- DwarfLineSection = ".section __DWARFA,__debug_line";
- DwarfFrameSection = ".section __DWARFA,__debug_frame";
- DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames";
- DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes";
- DwarfStrSection = ".section __DWARFA,__debug_str";
- DwarfLocSection = ".section __DWARFA,__debug_loc";
- DwarfARangesSection = ".section __DWARFA,__debug_aranges";
- DwarfRangesSection = ".section __DWARFA,__debug_ranges";
- DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo";
- TextSection = ".text";
- DataSection = ".data";
- }
+ X86DwarfWriter(std::ostream &o, AsmPrinter *ap) : DwarfWriter(o, ap) {
+ needsSet = true;
+ DwarfAbbrevSection = ".section __DWARFA,__debug_abbrev";
+ DwarfInfoSection = ".section __DWARFA,__debug_info";
+ DwarfLineSection = ".section __DWARFA,__debug_line";
+ DwarfFrameSection = ".section __DWARFA,__debug_frame";
+ DwarfPubNamesSection = ".section __DWARFA,__debug_pubnames";
+ DwarfPubTypesSection = ".section __DWARFA,__debug_pubtypes";
+ DwarfStrSection = ".section __DWARFA,__debug_str";
+ DwarfLocSection = ".section __DWARFA,__debug_loc";
+ DwarfARangesSection = ".section __DWARFA,__debug_aranges";
+ DwarfRangesSection = ".section __DWARFA,__debug_ranges";
+ DwarfMacInfoSection = ".section __DWARFA,__debug_macinfo";
+ TextSection = ".text";
+ DataSection = ".data";
+ }
+ virtual void virtfn(); // out of line virtual fn.
};
struct X86SharedAsmPrinter : public AsmPrinter {