From 742fd195a687d8b22bde060783c1032dd62b07ab Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Wed, 24 Sep 2008 22:22:54 +0000 Subject: [PATCH] Minor cleanup git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56588 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 2 ++ lib/Target/PowerPC/PPCTargetAsmInfo.h | 3 +++ lib/Target/X86/X86TargetAsmInfo.cpp | 2 ++ lib/Target/X86/X86TargetAsmInfo.h | 3 +++ 4 files changed, 10 insertions(+) diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index 0c1cdcca2d8..717ddd6a15b 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp @@ -19,6 +19,8 @@ using namespace llvm; using namespace llvm::dwarf; +TEMPLATE_INSTANTIATION(class PPCTargetAsmInfo); + PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM): PPCTargetAsmInfo(TM) { PCSymbol = "."; diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.h b/lib/Target/PowerPC/PPCTargetAsmInfo.h index 2c78aade1e7..a533d5fc60e 100644 --- a/lib/Target/PowerPC/PPCTargetAsmInfo.h +++ b/lib/Target/PowerPC/PPCTargetAsmInfo.h @@ -18,6 +18,7 @@ #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/DarwinTargetAsmInfo.h" #include "llvm/Target/ELFTargetAsmInfo.h" +#include "llvm/Support/Compiler.h" namespace llvm { @@ -41,6 +42,8 @@ namespace llvm { typedef PPCTargetAsmInfo PPCGenericTargetAsmInfo; + EXTERN_TEMPLATE_INSTANTIATION(class PPCTargetAsmInfo); + struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo { explicit PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM); virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason, diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index d11f01628f5..a8930b8f224 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -37,6 +37,8 @@ const char *const llvm::x86_asm_table[] = { "{cc}", "cc", 0,0}; +TEMPLATE_INSTANTIATION(class X86TargetAsmInfo); + template bool X86TargetAsmInfo::LowerToBSwap(CallInst *CI) const { // FIXME: this should verify that we are targetting a 486 or better. If not, diff --git a/lib/Target/X86/X86TargetAsmInfo.h b/lib/Target/X86/X86TargetAsmInfo.h index 3a5fa6d2baf..9100fc0092c 100644 --- a/lib/Target/X86/X86TargetAsmInfo.h +++ b/lib/Target/X86/X86TargetAsmInfo.h @@ -18,6 +18,7 @@ #include "llvm/Target/TargetAsmInfo.h" #include "llvm/Target/ELFTargetAsmInfo.h" #include "llvm/Target/DarwinTargetAsmInfo.h" +#include "llvm/Support/Compiler.h" namespace llvm { @@ -41,6 +42,8 @@ namespace llvm { typedef X86TargetAsmInfo X86GenericTargetAsmInfo; + EXTERN_TEMPLATE_INSTANTIATION(class X86TargetAsmInfo); + struct X86DarwinTargetAsmInfo : public X86TargetAsmInfo { explicit X86DarwinTargetAsmInfo(const X86TargetMachine &TM); virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason,