[llvm-commits] [llvm] r111933 - /llvm/trunk/lib/Linker/LinkModules.cpp
Dan Gohman
gohman at apple.com
Tue Aug 24 11:09:44 PDT 2010
Author: djg
Date: Tue Aug 24 13:09:44 2010
New Revision: 111933
URL: http://llvm.org/viewvc/llvm-project?rev=111933&view=rev
Log:
Don't cast away qualifiers with C-style casts.
Modified:
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=111933&r1=111932&r2=111933&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Aug 24 13:09:44 2010
@@ -338,9 +338,9 @@
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 @@
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;
More information about the llvm-commits
mailing list