Print the contents, not the pointer...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-22 02:06:50 +00:00
parent 5585f53d7c
commit 173e4244db

View File

@ -11,6 +11,7 @@
#include "llvm/Analysis/LoopInfo.h" #include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/InductionVariable.h" #include "llvm/Analysis/InductionVariable.h"
#include "llvm/Assembly/Writer.h" #include "llvm/Assembly/Writer.h"
#include "llvm/Module.h"
#include <iterator> #include <iterator>
#include <algorithm> #include <algorithm>
#include <string> #include <string>
@ -74,8 +75,8 @@ void WriteToOutput(const ImmediateDominators &ID, ostream &o) {
for (ImmediateDominators::const_iterator I = ID.begin(), E = ID.end(); for (ImmediateDominators::const_iterator I = ID.begin(), E = ID.end();
I != E; ++I) { I != E; ++I) {
o << "=============================--------------------------------\n" o << "=============================--------------------------------\n"
<< "\nImmediate Dominator For Basic Block\n" << I->first << "\nImmediate Dominator For Basic Block\n" << *I->first
<< "is: \n" << I->second << "\n"; << "is: \n" << *I->second << "\n";
} }
} }