summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-14 23:05:05 +0000
committerChris Lattner <sabre@nondot.org>2006-07-14 23:05:05 +0000
commit2e1d01541a994a4d30f4df7ff8e98c46f2c75b4f (patch)
tree176e0f961ee367ba37919bef34b70f6072922bbe /llvm/lib/Target/X86
parente32982cc52fed3041d0a5a52b1d1fd6cc87d44c4 (diff)
downloadbcm5719-llvm-2e1d01541a994a4d30f4df7ff8e98c46f2c75b4f.tar.gz
bcm5719-llvm-2e1d01541a994a4d30f4df7ff8e98c46f2c75b4f.zip
Add an out-of-line virtual method for X86DwarfWriter to give it a home.
llvm-svn: 29153
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86AsmPrinter.cpp4
-rwxr-xr-xllvm/lib/Target/X86/X86AsmPrinter.h36
2 files changed, 21 insertions, 19 deletions
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index 920d8d4468a..069b04751a8 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/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/llvm/lib/Target/X86/X86AsmPrinter.h b/llvm/lib/Target/X86/X86AsmPrinter.h
index eee956cd43b..272c880175d 100755
--- a/llvm/lib/Target/X86/X86AsmPrinter.h
+++ b/llvm/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 {
OpenPOWER on IntegriCloud