Print the contents, not the pointer...

llvm-svn: 2981
This commit is contained in:
Chris Lattner 2002-07-22 02:06:50 +00:00
parent 60f4c16199
commit b646346214

View File

@ -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";
}
}