[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp X86AsmPrinter.h

Chris Lattner lattner at cs.uiuc.edu
Fri Jul 14 16:05:17 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86AsmPrinter.cpp updated: 1.188 -> 1.189
X86AsmPrinter.h updated: 1.22 -> 1.23
---
Log message:

Add an out-of-line virtual method for X86DwarfWriter to give it a home.


---
Diffs of the changes:  (+21 -19)

 X86AsmPrinter.cpp |    4 ++++
 X86AsmPrinter.h   |   36 +++++++++++++++++-------------------
 2 files changed, 21 insertions(+), 19 deletions(-)


Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.188 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.189
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.188	Wed Jun 28 19:33:06 2006
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp	Fri Jul 14 18:05:05 2006
@@ -44,6 +44,10 @@
 #endif
                 );
 
+// Out of line virtual function to home classes.
+void X86DwarfWriter::virtfn() {}
+
+
 /// doInitialization
 bool X86SharedAsmPrinter::doInitialization(Module &M) {
   PrivateGlobalPrefix = ".L";


Index: llvm/lib/Target/X86/X86AsmPrinter.h
diff -u llvm/lib/Target/X86/X86AsmPrinter.h:1.22 llvm/lib/Target/X86/X86AsmPrinter.h:1.23
--- llvm/lib/Target/X86/X86AsmPrinter.h:1.22	Wed Jun 28 19:33:06 2006
+++ llvm/lib/Target/X86/X86AsmPrinter.h	Fri Jul 14 18:05:05 2006
@@ -32,25 +32,23 @@
 /// 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 {






More information about the llvm-commits mailing list