aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/NodeImpl.cpp
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
commit595d2f670a5685c41c700556454edd862a6aeec4 (patch)
treea372b225cd8987b0ad7d7a578df0edb596dff85f /lib/Analysis/DataStructure/NodeImpl.cpp
parentdd841aeb8d8d4cdcce716dc55e62a0f823c2856c (diff)
Print argument scalars as ellipses instead of boxes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2293 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/NodeImpl.cpp')
-rw-r--r--lib/Analysis/DataStructure/NodeImpl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/DataStructure/NodeImpl.cpp b/lib/Analysis/DataStructure/NodeImpl.cpp
index 66bd8898b1..46c12e3b8a 100644
--- a/lib/Analysis/DataStructure/NodeImpl.cpp
+++ b/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";