Add an out-of-line virtual method for X86DwarfWriter to give it a home.
authorChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 23:05:05 +0000 (23:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 14 Jul 2006 23:05:05 +0000 (23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29153 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86AsmPrinter.cpp
lib/Target/X86/X86AsmPrinter.h

index 920d8d4468ae4e8a92473015a41262c00de45c9c..069b04751a8a1162034990682de510389e2ffa7b 100644 (file)
@@ -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";
index eee956cd43b457c9a62da19367e0126563158e13..272c880175d90f0ab1095c47c34b5dd1619bf6b2 100755 (executable)
@@ -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 {