From: Owen Anderson Date: Thu, 7 Oct 2010 17:04:18 +0000 (+0000) Subject: Fix a warning when building with clang++. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=745c872bb5a81edafd1c279267bc89e96b7c8d1e;p=oota-llvm.git Fix a warning when building with clang++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115924 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ProfileInfo.cpp b/lib/Analysis/ProfileInfo.cpp index 9704b43cf57..cc28d436dfe 100644 --- a/lib/Analysis/ProfileInfo.cpp +++ b/lib/Analysis/ProfileInfo.cpp @@ -24,8 +24,9 @@ #include using namespace llvm; -template<> -char llvm::ProfileInfoT::ID = 0; +namespace llvm { + template<> char ProfileInfoT::ID = 0; +} // Register the ProfileInfo interface, providing a nice name to refer to. INITIALIZE_ANALYSIS_GROUP(ProfileInfo, "Profile Information");