diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:06:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-22 02:06:50 +0000 |
commit | 6635edfee4cdf730104b3cfbe99a504b268f6c59 (patch) | |
tree | af7c9392e8f1dac6ee02567546febf4bab34562e /llvm/lib/Analysis/Writer.cpp | |
parent | 2a78633b4ac5eb8143c81bccca355d06ebc3bfbb (diff) | |
download | bcm5719-llvm-6635edfee4cdf730104b3cfbe99a504b268f6c59.tar.gz bcm5719-llvm-6635edfee4cdf730104b3cfbe99a504b268f6c59.zip |
Print the contents, not the pointer...
llvm-svn: 2981
Diffstat (limited to 'llvm/lib/Analysis/Writer.cpp')
-rw-r--r-- | llvm/lib/Analysis/Writer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/Writer.cpp b/llvm/lib/Analysis/Writer.cpp index 88561ca7d26..e7eaf44f91f 100644 --- a/llvm/lib/Analysis/Writer.cpp +++ b/llvm/lib/Analysis/Writer.cpp @@ -11,6 +11,7 @@ #include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/InductionVariable.h" #include "llvm/Assembly/Writer.h" +#include "llvm/Module.h" #include <iterator> #include <algorithm> #include <string> @@ -74,8 +75,8 @@ void WriteToOutput(const ImmediateDominators &ID, ostream &o) { for (ImmediateDominators::const_iterator I = ID.begin(), E = ID.end(); I != E; ++I) { o << "=============================--------------------------------\n" - << "\nImmediate Dominator For Basic Block\n" << I->first - << "is: \n" << I->second << "\n"; + << "\nImmediate Dominator For Basic Block\n" << *I->first + << "is: \n" << *I->second << "\n"; } } |