summaryrefslogtreecommitdiff
path: root/tools/opt/GraphPrinters.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-24 17:37:09 +0000
committerOwen Anderson <resistor@mac.com>2009-06-24 17:37:09 +0000
commit8cbc94afb71fd2da72d8f1284f7f53e39019fdec (patch)
treed86c04e333accc7067f85d349065dab8f02fca1c /tools/opt/GraphPrinters.cpp
parent8539cfd30e6058e605ed2f38fb29523ea42e17a1 (diff)
downloadllvm-8cbc94afb71fd2da72d8f1284f7f53e39019fdec.tar.gz
llvm-8cbc94afb71fd2da72d8f1284f7f53e39019fdec.tar.bz2
llvm-8cbc94afb71fd2da72d8f1284f7f53e39019fdec.tar.xz
Get rid of the global CFGOnly flag by threading a ShortNames parameters through the GraphViz rendering code.
Update other uses in the codebase for this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/opt/GraphPrinters.cpp')
-rw-r--r--tools/opt/GraphPrinters.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/opt/GraphPrinters.cpp b/tools/opt/GraphPrinters.cpp
index a52baf7dae..5d581e4af0 100644
--- a/tools/opt/GraphPrinters.cpp
+++ b/tools/opt/GraphPrinters.cpp
@@ -49,7 +49,8 @@ namespace llvm {
return "Call Graph";
}
- static std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) {
+ static std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph,
+ bool ShortNames) {
if (Node->getFunction())
return ((Value*)Node->getFunction())->getName();
else