mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Don't cast away qualifiers with C-style casts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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) {
|
static void PrintMap(const std::map<const Value*, Value*> &M) {
|
||||||
for (std::map<const Value*, Value*>::const_iterator I = M.begin(), E =M.end();
|
for (std::map<const Value*, Value*>::const_iterator I = M.begin(), E =M.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
dbgs() << " Fr: " << (void*)I->first << " ";
|
dbgs() << " Fr: " << (const void*)I->first << " ";
|
||||||
I->first->dump();
|
I->first->dump();
|
||||||
dbgs() << " To: " << (void*)I->second << " ";
|
dbgs() << " To: " << (const void*)I->second << " ";
|
||||||
I->second->dump();
|
I->second->dump();
|
||||||
dbgs() << "\n";
|
dbgs() << "\n";
|
||||||
}
|
}
|
||||||
@ -419,7 +419,7 @@ static Value *RemapOperand(const Value *In,
|
|||||||
dbgs() << "LinkModules ValueMap: \n";
|
dbgs() << "LinkModules ValueMap: \n";
|
||||||
PrintMap(ValueMap);
|
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!");
|
llvm_unreachable("Couldn't remap value!");
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user