diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2016-03-10 11:04:40 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2016-03-10 11:04:40 +0000 |
commit | 5f432292a672f13549656ee3639f5916c3e01586 (patch) | |
tree | 276ee8632cca2cdb9eda67a12cff3fbe0bcaa9ea /llvm/lib | |
parent | 6dc9db52449255227a7cd00ed0b1283059824076 (diff) | |
download | bcm5719-llvm-5f432292a672f13549656ee3639f5916c3e01586.tar.gz bcm5719-llvm-5f432292a672f13549656ee3639f5916c3e01586.zip |
[CG] Rename the DOT printing pass to actually reference "DOT".
There is another pass by the generic name 'CallGraphPrinter' which is
actually just a call graph printer tucked away inside the opt tool. I'd
like to bring it out and make it follow the same patterns as the rest of
the CallGraph code, but doing so would end up conflicting with the name
of the DOT printing pass. So this makes the DOT printing pass name be
more precise.
No functionality changed here.
llvm-svn: 263100
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/Analysis.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Analysis/CallPrinter.cpp | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/Analysis.cpp b/llvm/lib/Analysis/Analysis.cpp index cf13dad315a..4048146515f 100644 --- a/llvm/lib/Analysis/Analysis.cpp +++ b/llvm/lib/Analysis/Analysis.cpp @@ -26,7 +26,7 @@ void llvm::initializeAnalysis(PassRegistry &Registry) { initializeBlockFrequencyInfoWrapperPassPass(Registry); initializeBranchProbabilityInfoWrapperPassPass(Registry); initializeCallGraphWrapperPassPass(Registry); - initializeCallGraphPrinterPass(Registry); + initializeCallGraphDOTPrinterPass(Registry); initializeCallGraphViewerPass(Registry); initializeCostModelAnalysisPass(Registry); initializeCFGViewerPass(Registry); diff --git a/llvm/lib/Analysis/CallPrinter.cpp b/llvm/lib/Analysis/CallPrinter.cpp index 68dcd3c0642..af942e9ed3e 100644 --- a/llvm/lib/Analysis/CallPrinter.cpp +++ b/llvm/lib/Analysis/CallPrinter.cpp @@ -58,16 +58,16 @@ struct CallGraphViewer } }; -struct CallGraphPrinter : public DOTGraphTraitsModulePrinter< +struct CallGraphDOTPrinter : public DOTGraphTraitsModulePrinter< CallGraphWrapperPass, true, CallGraph *, AnalysisCallGraphWrapperPassTraits> { static char ID; - CallGraphPrinter() + CallGraphDOTPrinter() : DOTGraphTraitsModulePrinter<CallGraphWrapperPass, true, CallGraph *, AnalysisCallGraphWrapperPassTraits>( "callgraph", ID) { - initializeCallGraphPrinterPass(*PassRegistry::getPassRegistry()); + initializeCallGraphDOTPrinterPass(*PassRegistry::getPassRegistry()); } }; @@ -77,8 +77,8 @@ char CallGraphViewer::ID = 0; INITIALIZE_PASS(CallGraphViewer, "view-callgraph", "View call graph", false, false) -char CallGraphPrinter::ID = 0; -INITIALIZE_PASS(CallGraphPrinter, "dot-callgraph", +char CallGraphDOTPrinter::ID = 0; +INITIALIZE_PASS(CallGraphDOTPrinter, "dot-callgraph", "Print call graph to 'dot' file", false, false) // Create methods available outside of this file, to use them @@ -87,6 +87,6 @@ INITIALIZE_PASS(CallGraphPrinter, "dot-callgraph", ModulePass *llvm::createCallGraphViewerPass() { return new CallGraphViewer(); } -ModulePass *llvm::createCallGraphPrinterPass() { - return new CallGraphPrinter(); +ModulePass *llvm::createCallGraphDOTPrinterPass() { + return new CallGraphDOTPrinter(); } |