mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 17:24:48 +00:00
Changes to build successfully with GCC 3.02
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1503 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,7 +24,7 @@ template class ValueHolder<Method, Module, Module>;
|
||||
// Define the GlobalValueRefMap as a struct that wraps a map so that we don't
|
||||
// have Module.h depend on <map>
|
||||
//
|
||||
struct GlobalValueRefMap : public map<GlobalValue*, ConstantPointerRef*>{
|
||||
struct GlobalValueRefMap : public std::map<GlobalValue*, ConstantPointerRef*>{
|
||||
};
|
||||
|
||||
|
||||
@ -97,7 +97,7 @@ ConstantPointerRef *Module::getConstantPointerRef(GlobalValue *V){
|
||||
if (I != GVRefMap->end()) return I->second;
|
||||
|
||||
ConstantPointerRef *Ref = new ConstantPointerRef(V);
|
||||
GVRefMap->insert(make_pair(V, Ref));
|
||||
GVRefMap->insert(std::make_pair(V, Ref));
|
||||
|
||||
return Ref;
|
||||
}
|
||||
@ -112,5 +112,5 @@ void Module::mutateConstantPointerRef(GlobalValue *OldGV, GlobalValue *NewGV) {
|
||||
GVRefMap->erase(I);
|
||||
|
||||
// Insert the new entry...
|
||||
GVRefMap->insert(make_pair(NewGV, Ref));
|
||||
GVRefMap->insert(std::make_pair(NewGV, Ref));
|
||||
}
|
||||
|
Reference in New Issue
Block a user