summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-08-12 03:24:59 +0000
committerJustin Bogner <mail@justinbogner.com>2014-08-12 03:24:59 +0000
commitc0087f36114774899c26aa677aa5fe02027c22f0 (patch)
treeaf40c117c83c8dba204fc5d11c697f06b6c50750 /llvm/lib/Linker
parent6617777fa7db67a71e71a1382bba5cbc3c51201c (diff)
downloadbcm5719-llvm-c0087f36114774899c26aa677aa5fe02027c22f0.tar.gz
bcm5719-llvm-c0087f36114774899c26aa677aa5fe02027c22f0.zip
IR: Print a newline when dumping Types
Type::dump() doesn't print a newline, which makes for a poor experience in a debugger. This looks like it was an ommission considering Value::dump() two lines above, so I've changed Type to add a newline as well. Of the two in-tree callers, one added a newline anyway, and I've updated the other one to use Type::print instead. llvm-svn: 215421
Diffstat (limited to 'llvm/lib/Linker')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 1748af47402..c83774f8d03 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -78,9 +78,9 @@ public:
for (DenseMap<Type*, Type*>::const_iterator
I = MappedTypes.begin(), E = MappedTypes.end(); I != E; ++I) {
dbgs() << "TypeMap: ";
- I->first->dump();
+ I->first->print(dbgs());
dbgs() << " => ";
- I->second->dump();
+ I->second->print(dbgs());
dbgs() << '\n';
}
}
OpenPOWER on IntegriCloud