summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-18 18:14:19 +0000
committerChris Lattner <sabre@nondot.org>2002-04-18 18:14:19 +0000
commita2cdf2fb10e6f79e1063d1054c011c3d419dacec (patch)
treef38e700587c16578d5dc75ae7b857e4cead1c8a3 /llvm/lib
parent260ab20422de3a6f93ee974087a5a9c3d745eeee (diff)
downloadbcm5719-llvm-a2cdf2fb10e6f79e1063d1054c011c3d419dacec.tar.gz
bcm5719-llvm-a2cdf2fb10e6f79e1063d1054c011c3d419dacec.zip
Print argument scalars as ellipses instead of boxes
llvm-svn: 2293
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/DataStructure/NodeImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp b/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
index 66bd8898b1c..46c12e3b8ac 100644
--- a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
+++ b/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
@@ -328,7 +328,8 @@ void FunctionDSGraph::printFunction(std::ostream &O,
WriteTypeSymbolic(OS, I->first->getType(), Func->getParent());
// Create node for I->first
- O << "\t\tNode" << (void*)I->first << Label << " [shape=\"box\", label=\""
+ O << "\t\tNode" << (void*)I->first << Label << " [shape=\""
+ << (isa<Argument>(I->first) ? "ellipse" : "box") << "\", label=\""
<< escapeLabel(OS.str()) << "\\n%" << escapeLabel(I->first->getName())
<< "\",fontsize=\"12.0\",color=\"gray70\"];\n";
OpenPOWER on IntegriCloud