summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-24 18:09:44 +0000
committerDan Gohman <gohman@apple.com>2010-08-24 18:09:44 +0000
commite06c8137e0a0ac58ea83583ac59351b4aa8bb9f9 (patch)
treebb9c4020f1b89807a7f0a2083d517945835ec642 /llvm/lib/Linker/LinkModules.cpp
parent35b7c033d4d65dd5d8eefd1d447fca2870d132f3 (diff)
downloadbcm5719-llvm-e06c8137e0a0ac58ea83583ac59351b4aa8bb9f9.tar.gz
bcm5719-llvm-e06c8137e0a0ac58ea83583ac59351b4aa8bb9f9.zip
Don't cast away qualifiers with C-style casts.
llvm-svn: 111933
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 4891631bc9c..f2187c09882 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -338,9 +338,9 @@ static bool LinkTypes(Module *Dest, const Module *Src, std::string *Err) {
static void PrintMap(const std::map<const Value*, Value*> &M) {
for (std::map<const Value*, Value*>::const_iterator I = M.begin(), E =M.end();
I != E; ++I) {
- dbgs() << " Fr: " << (void*)I->first << " ";
+ dbgs() << " Fr: " << (const void*)I->first << " ";
I->first->dump();
- dbgs() << " To: " << (void*)I->second << " ";
+ dbgs() << " To: " << (const void*)I->second << " ";
I->second->dump();
dbgs() << "\n";
}
@@ -419,7 +419,7 @@ static Value *RemapOperand(const Value *In,
dbgs() << "LinkModules ValueMap: \n";
PrintMap(ValueMap);
- dbgs() << "Couldn't remap value: " << (void*)In << " " << *In << "\n";
+ dbgs() << "Couldn't remap value: " << (const void*)In << " " << *In << "\n";
llvm_unreachable("Couldn't remap value!");
#endif
return 0;
OpenPOWER on IntegriCloud