diff options
Diffstat (limited to 'lib/Analysis/IPA')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 3 | ||||
-rw-r--r-- | lib/Analysis/IPA/FindUnsafePointerTypes.cpp | 5 | ||||
-rw-r--r-- | lib/Analysis/IPA/FindUsedTypes.cpp | 4 |
3 files changed, 5 insertions, 7 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index dfb5de68de..709c1942f6 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -46,8 +46,7 @@ #include <algorithm> static RegisterAnalysis<CallGraph> X("callgraph", "Call Graph Construction"); - -AnalysisID CallGraph::ID(AnalysisID::create<CallGraph>()); +AnalysisID CallGraph::ID = X; // getNodeFor - Return the node for the specified function or create one if it // does not already exist. diff --git a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp index 2678fcf07d..425c154ecf 100644 --- a/lib/Analysis/IPA/FindUnsafePointerTypes.cpp +++ b/lib/Analysis/IPA/FindUnsafePointerTypes.cpp @@ -25,7 +25,7 @@ static RegisterAnalysis<FindUnsafePointerTypes> X("unsafepointertypes", "Find Unsafe Pointer Types"); -AnalysisID FindUnsafePointerTypes::ID(AnalysisID::create<FindUnsafePointerTypes>()); +AnalysisID FindUnsafePointerTypes::ID = X; // Provide a command line option to turn on printing of which instructions cause // a type to become invalid @@ -77,8 +77,7 @@ bool FindUnsafePointerTypes::run(Module &Mod) { // printResults - Loop over the results of the analysis, printing out unsafe // types. // -void FindUnsafePointerTypes::printResults(const Module *M, - std::ostream &o) const { +void FindUnsafePointerTypes::print(std::ostream &o, const Module *M) const { if (UnsafeTypes.empty()) { o << "SafePointerAccess Analysis: No unsafe types found!\n"; return; diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 1139cf3df8..6f12612c4e 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -13,7 +13,7 @@ static RegisterAnalysis<FindUsedTypes> X("printusedtypes", "Find Used Types"); -AnalysisID FindUsedTypes::ID(AnalysisID::create<FindUsedTypes>()); +AnalysisID FindUsedTypes::ID = X; // IncorporateType - Incorporate one type and all of its subtypes into the // collection of used types. @@ -68,7 +68,7 @@ bool FindUsedTypes::run(Module &m) { // passed in, then the types are printed symbolically if possible, using the // symbol table from the module. // -void FindUsedTypes::printTypes(std::ostream &o, const Module *M) const { +void FindUsedTypes::print(std::ostream &o, const Module *M) const { o << "Types in use by this module:\n"; if (M) { CachedWriter CW(M, o); |