diff options
| author | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:22:54 +0000 |
|---|---|---|
| committer | Anton Korobeynikov <asl@math.spbu.ru> | 2008-09-24 22:22:54 +0000 |
| commit | 8cebe08c10b3b7e941ae088f0d6c72372fe1ef38 (patch) | |
| tree | b013c350bb85bf7ef6d11be995a4a7340a0287b0 | |
| parent | ec2c6e1e97124a5f15c4b1abba707cb87c0db916 (diff) | |
| download | external_llvm-8cebe08c10b3b7e941ae088f0d6c72372fe1ef38.zip external_llvm-8cebe08c10b3b7e941ae088f0d6c72372fe1ef38.tar.gz external_llvm-8cebe08c10b3b7e941ae088f0d6c72372fe1ef38.tar.bz2 | |
Minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56588 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Target/PowerPC/PPCTargetAsmInfo.cpp | 2 | ||||
| -rw-r--r-- | lib/Target/PowerPC/PPCTargetAsmInfo.h | 3 | ||||
| -rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 2 | ||||
| -rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.h | 3 |
4 files changed, 10 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.cpp b/lib/Target/PowerPC/PPCTargetAsmInfo.cpp index 0c1cdcc..717ddd6 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<TargetAsmInfo>); + PPCDarwinTargetAsmInfo::PPCDarwinTargetAsmInfo(const PPCTargetMachine &TM): PPCTargetAsmInfo<DarwinTargetAsmInfo>(TM) { PCSymbol = "."; diff --git a/lib/Target/PowerPC/PPCTargetAsmInfo.h b/lib/Target/PowerPC/PPCTargetAsmInfo.h index 2c78aad..a533d5f 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<TargetAsmInfo> PPCGenericTargetAsmInfo; + EXTERN_TEMPLATE_INSTANTIATION(class PPCTargetAsmInfo<TargetAsmInfo>); + struct PPCDarwinTargetAsmInfo : public PPCTargetAsmInfo<DarwinTargetAsmInfo> { 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 d11f016..a8930b8 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<TargetAsmInfo>); + template <class BaseTAI> bool X86TargetAsmInfo<BaseTAI>::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 3a5fa6d..9100fc0 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<TargetAsmInfo> X86GenericTargetAsmInfo; + EXTERN_TEMPLATE_INSTANTIATION(class X86TargetAsmInfo<TargetAsmInfo>); + struct X86DarwinTargetAsmInfo : public X86TargetAsmInfo<DarwinTargetAsmInfo> { explicit X86DarwinTargetAsmInfo(const X86TargetMachine &TM); virtual unsigned PreferredEHDataFormat(DwarfEncoding::Target Reason, |
