summaryrefslogtreecommitdiff
path: root/lib/Analysis/DataStructure/DataStructure.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-16 20:39:59 +0000
committerChris Lattner <sabre@nondot.org>2002-04-16 20:39:59 +0000
commit7650b94c758f55066b43799ecfb50c729c2153af (patch)
tree29f836dd25a5cd09c714055a0e00ce1e8bb5256b /lib/Analysis/DataStructure/DataStructure.cpp
parent28c238636ea663419f35319bcedc445d08995e57 (diff)
downloadllvm-7650b94c758f55066b43799ecfb50c729c2153af.tar.gz
llvm-7650b94c758f55066b43799ecfb50c729c2153af.tar.bz2
llvm-7650b94c758f55066b43799ecfb50c729c2153af.tar.xz
* Remove the concept of a critical shadow node
* Make the function pointer argument explicit for a call nodes * Eliminate unreachable global values * Merge call nodes that are identical git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/DataStructure.cpp')
-rw-r--r--lib/Analysis/DataStructure/DataStructure.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Analysis/DataStructure/DataStructure.cpp b/lib/Analysis/DataStructure/DataStructure.cpp
index 01ef27383c..248ed918bb 100644
--- a/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/lib/Analysis/DataStructure/DataStructure.cpp
@@ -56,7 +56,7 @@ void DataStructure::print(std::ostream &O, Module *M) const {
if (!(*I)->isExternal()) {
string Filename = "ds." + (*I)->getName() + ".dot";
- O << "Writing '" << Filename << "'...\n";
+ O << "Writing '" << Filename << "'...";
ofstream F(Filename.c_str());
if (F.good()) {
F << "digraph DataStructures {\n"
@@ -72,9 +72,12 @@ void DataStructure::print(std::ostream &O, Module *M) const {
} else {
O << " error opening file for writing!\n";
}
-
- O << (*I)->getName() << " " << getDSGraph(*I).getGraphSize() << " "
- << getClosedDSGraph(*I).getGraphSize() << "\n";
+
+ if (Time)
+ O << " [" << getDSGraph(*I).getGraphSize() << ", "
+ << getClosedDSGraph(*I).getGraphSize() << "]\n";
+ else
+ O << "\n";
}
}