Appease the clang self-host buildbot by providing a correct instantiation.
authorOwen Anderson <resistor@mac.com>
Wed, 6 Oct 2010 22:23:20 +0000 (22:23 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 6 Oct 2010 22:23:20 +0000 (22:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115857 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ProfileInfo.cpp

index 9d10f4e9243670d1354d4a4337bea5f087acdc8d..9704b43cf57e15bca27e0d430429ad114a774745 100644 (file)
@@ -24,6 +24,9 @@
 #include <limits>
 using namespace llvm;
 
+template<>
+char llvm::ProfileInfoT<Function,BasicBlock>::ID = 0;
+
 // Register the ProfileInfo interface, providing a nice name to refer to.
 INITIALIZE_ANALYSIS_GROUP(ProfileInfo, "Profile Information");
 
@@ -43,9 +46,6 @@ ProfileInfoT<Function, BasicBlock>::~ProfileInfoT() {
   if (MachineProfile) delete MachineProfile;
 }
 
-template<>
-char ProfileInfoT<Function,BasicBlock>::ID = 0;
-
 template<>
 char ProfileInfoT<MachineFunction, MachineBasicBlock>::ID = 0;