Fix build error.
authorLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 2 May 2007 20:37:47 +0000 (20:37 +0000)
committerLauro Ramos Venancio <lauro.venancio@gmail.com>
Wed, 2 May 2007 20:37:47 +0000 (20:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36648 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AliasAnalysis.cpp
lib/Analysis/IPA/CallGraph.cpp
lib/Analysis/ProfileInfo.cpp
lib/Analysis/ScalarEvolution.cpp
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/MachineModuleInfo.cpp
lib/Target/TargetData.cpp
lib/Transforms/Instrumentation/RSProfiling.cpp

index 7499db562b761c0fa48abdb9ec141d7d8d974815..ab29e4ebb467b3dc4815f19048e563cb0c9f92f2 100644 (file)
@@ -34,9 +34,9 @@ using namespace llvm;
 
 // Register the AliasAnalysis interface, providing a nice name to refer to.
 namespace {
-  const int AliasAnalysis::ID = 0;
   RegisterAnalysisGroup<AliasAnalysis> Z("Alias Analysis");
 }
+const int AliasAnalysis::ID = 0;
 
 //===----------------------------------------------------------------------===//
 // Default chaining methods
index 43e70bb2184bc2f564284fbb5365fb54670c2d14..ad6c898540e870ff1a80e8949747cbedfd03f12c 100644 (file)
@@ -190,14 +190,16 @@ private:
   }
 };
 
-const int CallGraph::ID = 0;
+
 RegisterAnalysisGroup<CallGraph> X("Call Graph");
-const int BasicCallGraph::ID = 0;
 RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction");
 RegisterAnalysisGroup<CallGraph, true> Z(Y);
 
 } //End anonymous namespace
 
+const int CallGraph::ID = 0;
+const int BasicCallGraph::ID = 0;
+
 void CallGraph::initialize(Module &M) {
   Mod = &M;
 }
index 27da8162080e6473130ee39f0915c0a4b8e21a35..2a6a6a50bd037333593e1bdf2a651ac5de38ee3c 100644 (file)
@@ -22,9 +22,9 @@ using namespace llvm;
 
 // Register the ProfileInfo interface, providing a nice name to refer to.
 namespace {
-  const int ProfileInfo::ID = 0;
   RegisterAnalysisGroup<ProfileInfo> Z("Profile Information");
 }
+const int ProfileInfo::ID = 0;
 
 ProfileInfo::~ProfileInfo() {}
 
index 5dae7f0bf1c78f1362957ecaa2192b1297d37091..2c591fc0d5bdaa4c49aba213146455150e95f17c 100644 (file)
@@ -102,10 +102,10 @@ MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden,
                         cl::init(100));
 
 namespace {
-  const int ScalarEvolution::ID = 0;
   RegisterPass<ScalarEvolution>
   R("scalar-evolution", "Scalar Evolution Analysis");
 }
+const int ScalarEvolution::ID = 0;
 
 //===----------------------------------------------------------------------===//
 //                           SCEV class definitions
index cc6c23f59f64e68d323828cd35a3703f681054be..d11de96bec85e5ebde3f7651c10469184cabb918 100644 (file)
@@ -44,8 +44,8 @@ STATISTIC(numPeep     , "Number of identity moves eliminated after coalescing");
 STATISTIC(numFolded   , "Number of loads/stores folded into instructions");
 STATISTIC(numAborts   , "Number of times interval joining aborted");
 
+const int LiveIntervals::ID = 0;
 namespace {
-  const int LiveIntervals::ID = 0;
   RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis");
 
   static cl::opt<bool>
index 6421396faac1ef3fb87074f96f47dd7c2913b38d..d62eb962a3e3f091abd7b0a46569ecef9e379d1b 100644 (file)
@@ -28,9 +28,9 @@ using namespace llvm::dwarf;
 
 // Handle the Pass registration stuff necessary to use TargetData's.
 namespace {
-  const int MachineModuleInfo::ID = 0;
   RegisterPass<MachineModuleInfo> X("machinemoduleinfo", "Module Information");
 }
+const int MachineModuleInfo::ID = 0;
 
 //===----------------------------------------------------------------------===//
 
index d1842fe7de21aa7c5e572214b7c3dbc234dc5e9c..9492c8aad21962c2b7e2d24c59296601039da6bc 100644 (file)
@@ -33,9 +33,9 @@ using namespace llvm;
 // Handle the Pass registration stuff necessary to use TargetData's.
 namespace {
   // Register the default SparcV9 implementation...
-  const int TargetData::ID = 0;
   RegisterPass<TargetData> X("targetdata", "Target Data Layout");
 }
+const int TargetData::ID = 0;
 
 //===----------------------------------------------------------------------===//
 // Support for StructLayout
index ad9a841cb0d935cd424af47fb285f3dea182e992..321e3908e06e3eb80a8bb91fd5e390a9f8ea16f2 100644 (file)
@@ -81,9 +81,7 @@ namespace {
     }
   };
 
-  const int RSProfilers::ID = 0;
   static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
-  const int NullProfilerRS::ID = 0;
   static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
                                          "Measure profiling framework overhead");
   static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);
@@ -160,11 +158,14 @@ namespace {
     virtual void getAnalysisUsage(AnalysisUsage &AU) const;
   };
 
-  const int ProfilerRS::ID = 0;
   RegisterPass<ProfilerRS> X("insert-rs-profiling-framework",
                              "Insert random sampling instrumentation framework");
 }
 
+const int RSProfilers::ID = 0;
+const int NullProfilerRS::ID = 0;
+const int ProfilerRS::ID = 0;
+
 //Local utilities
 static void ReplacePhiPred(BasicBlock* btarget, 
                            BasicBlock* bold, BasicBlock* bnew);