mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-22 19:49:49 +00:00
Fix build error.
llvm-svn: 36648
This commit is contained in:
parent
44aa4c588b
commit
57d03e112b
@ -34,9 +34,9 @@ using namespace llvm;
|
|||||||
|
|
||||||
// Register the AliasAnalysis interface, providing a nice name to refer to.
|
// Register the AliasAnalysis interface, providing a nice name to refer to.
|
||||||
namespace {
|
namespace {
|
||||||
const int AliasAnalysis::ID = 0;
|
|
||||||
RegisterAnalysisGroup<AliasAnalysis> Z("Alias Analysis");
|
RegisterAnalysisGroup<AliasAnalysis> Z("Alias Analysis");
|
||||||
}
|
}
|
||||||
|
const int AliasAnalysis::ID = 0;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Default chaining methods
|
// Default chaining methods
|
||||||
|
@ -190,14 +190,16 @@ private:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const int CallGraph::ID = 0;
|
|
||||||
RegisterAnalysisGroup<CallGraph> X("Call Graph");
|
RegisterAnalysisGroup<CallGraph> X("Call Graph");
|
||||||
const int BasicCallGraph::ID = 0;
|
|
||||||
RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction");
|
RegisterPass<BasicCallGraph> Y("basiccg", "Basic CallGraph Construction");
|
||||||
RegisterAnalysisGroup<CallGraph, true> Z(Y);
|
RegisterAnalysisGroup<CallGraph, true> Z(Y);
|
||||||
|
|
||||||
} //End anonymous namespace
|
} //End anonymous namespace
|
||||||
|
|
||||||
|
const int CallGraph::ID = 0;
|
||||||
|
const int BasicCallGraph::ID = 0;
|
||||||
|
|
||||||
void CallGraph::initialize(Module &M) {
|
void CallGraph::initialize(Module &M) {
|
||||||
Mod = &M;
|
Mod = &M;
|
||||||
}
|
}
|
||||||
|
@ -22,9 +22,9 @@ using namespace llvm;
|
|||||||
|
|
||||||
// Register the ProfileInfo interface, providing a nice name to refer to.
|
// Register the ProfileInfo interface, providing a nice name to refer to.
|
||||||
namespace {
|
namespace {
|
||||||
const int ProfileInfo::ID = 0;
|
|
||||||
RegisterAnalysisGroup<ProfileInfo> Z("Profile Information");
|
RegisterAnalysisGroup<ProfileInfo> Z("Profile Information");
|
||||||
}
|
}
|
||||||
|
const int ProfileInfo::ID = 0;
|
||||||
|
|
||||||
ProfileInfo::~ProfileInfo() {}
|
ProfileInfo::~ProfileInfo() {}
|
||||||
|
|
||||||
|
@ -102,10 +102,10 @@ MaxBruteForceIterations("scalar-evolution-max-iterations", cl::ReallyHidden,
|
|||||||
cl::init(100));
|
cl::init(100));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
const int ScalarEvolution::ID = 0;
|
|
||||||
RegisterPass<ScalarEvolution>
|
RegisterPass<ScalarEvolution>
|
||||||
R("scalar-evolution", "Scalar Evolution Analysis");
|
R("scalar-evolution", "Scalar Evolution Analysis");
|
||||||
}
|
}
|
||||||
|
const int ScalarEvolution::ID = 0;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// SCEV class definitions
|
// SCEV class definitions
|
||||||
|
@ -44,8 +44,8 @@ STATISTIC(numPeep , "Number of identity moves eliminated after coalescing");
|
|||||||
STATISTIC(numFolded , "Number of loads/stores folded into instructions");
|
STATISTIC(numFolded , "Number of loads/stores folded into instructions");
|
||||||
STATISTIC(numAborts , "Number of times interval joining aborted");
|
STATISTIC(numAborts , "Number of times interval joining aborted");
|
||||||
|
|
||||||
|
const int LiveIntervals::ID = 0;
|
||||||
namespace {
|
namespace {
|
||||||
const int LiveIntervals::ID = 0;
|
|
||||||
RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis");
|
RegisterPass<LiveIntervals> X("liveintervals", "Live Interval Analysis");
|
||||||
|
|
||||||
static cl::opt<bool>
|
static cl::opt<bool>
|
||||||
|
@ -28,9 +28,9 @@ using namespace llvm::dwarf;
|
|||||||
|
|
||||||
// Handle the Pass registration stuff necessary to use TargetData's.
|
// Handle the Pass registration stuff necessary to use TargetData's.
|
||||||
namespace {
|
namespace {
|
||||||
const int MachineModuleInfo::ID = 0;
|
|
||||||
RegisterPass<MachineModuleInfo> X("machinemoduleinfo", "Module Information");
|
RegisterPass<MachineModuleInfo> X("machinemoduleinfo", "Module Information");
|
||||||
}
|
}
|
||||||
|
const int MachineModuleInfo::ID = 0;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
@ -33,9 +33,9 @@ using namespace llvm;
|
|||||||
// Handle the Pass registration stuff necessary to use TargetData's.
|
// Handle the Pass registration stuff necessary to use TargetData's.
|
||||||
namespace {
|
namespace {
|
||||||
// Register the default SparcV9 implementation...
|
// Register the default SparcV9 implementation...
|
||||||
const int TargetData::ID = 0;
|
|
||||||
RegisterPass<TargetData> X("targetdata", "Target Data Layout");
|
RegisterPass<TargetData> X("targetdata", "Target Data Layout");
|
||||||
}
|
}
|
||||||
|
const int TargetData::ID = 0;
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Support for StructLayout
|
// Support for StructLayout
|
||||||
|
@ -81,9 +81,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const int RSProfilers::ID = 0;
|
|
||||||
static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
|
static RegisterAnalysisGroup<RSProfilers> A("Profiling passes");
|
||||||
const int NullProfilerRS::ID = 0;
|
|
||||||
static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
|
static RegisterPass<NullProfilerRS> NP("insert-null-profiling-rs",
|
||||||
"Measure profiling framework overhead");
|
"Measure profiling framework overhead");
|
||||||
static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);
|
static RegisterAnalysisGroup<RSProfilers, true> NPT(NP);
|
||||||
@ -160,11 +158,14 @@ namespace {
|
|||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
const int ProfilerRS::ID = 0;
|
|
||||||
RegisterPass<ProfilerRS> X("insert-rs-profiling-framework",
|
RegisterPass<ProfilerRS> X("insert-rs-profiling-framework",
|
||||||
"Insert random sampling instrumentation framework");
|
"Insert random sampling instrumentation framework");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int RSProfilers::ID = 0;
|
||||||
|
const int NullProfilerRS::ID = 0;
|
||||||
|
const int ProfilerRS::ID = 0;
|
||||||
|
|
||||||
//Local utilities
|
//Local utilities
|
||||||
static void ReplacePhiPred(BasicBlock* btarget,
|
static void ReplacePhiPred(BasicBlock* btarget,
|
||||||
BasicBlock* bold, BasicBlock* bnew);
|
BasicBlock* bold, BasicBlock* bnew);
|
||||||
|
Loading…
Reference in New Issue
Block a user