Minor cleanup
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 24 Sep 2008 22:22:54 +0000 (22:22 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 24 Sep 2008 22:22:54 +0000 (22:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56588 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCTargetAsmInfo.cpp
lib/Target/PowerPC/PPCTargetAsmInfo.h
lib/Target/X86/X86TargetAsmInfo.cpp
lib/Target/X86/X86TargetAsmInfo.h

index 0c1cdcca2d89a5731d9bc86e944e9c3dd5208a67..717ddd6a15b587bc0dbe59af836f5114a840bc24 100644 (file)
@@ -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 = ".";
index 2c78aade1e7d743a7974d28d1c646c976c729fb8..a533d5fc60e2f00a850f9183980b817f4f74c1ec 100644 (file)
@@ -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,
index d11f01628f5f9da5d09efbad1f5411c586a91a5b..a8930b8f224a1d1a60045ee3a683e2ff3ae66529 100644 (file)
@@ -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,
index 3a5fa6d2bafffcc58972d02706683c3beea8cdae..9100fc0092c3587c563d71747434ea57995456b8 100644 (file)
@@ -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,