mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 00:20:11 +00:00
Convert code to compile with vc7.1.
Patch contributed by Paolo Invernizzi. Thanks Paolo! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -347,14 +347,14 @@ unsigned BytecodeReader::getTypeSlot(const Type *Ty) {
|
||||
}
|
||||
|
||||
// Check the function level types first...
|
||||
TypeListTy::iterator I = find(FunctionTypes.begin(), FunctionTypes.end(), Ty);
|
||||
TypeListTy::iterator I = std::find(FunctionTypes.begin(), FunctionTypes.end(), Ty);
|
||||
|
||||
if (I != FunctionTypes.end())
|
||||
return Type::FirstDerivedTyID + ModuleTypes.size() +
|
||||
(&*I - &FunctionTypes[0]);
|
||||
|
||||
// Check the module level types now...
|
||||
I = find(ModuleTypes.begin(), ModuleTypes.end(), Ty);
|
||||
I = std::find(ModuleTypes.begin(), ModuleTypes.end(), Ty);
|
||||
if (I == ModuleTypes.end())
|
||||
error("Didn't find type in ModuleTypes.");
|
||||
return Type::FirstDerivedTyID + (&*I - &ModuleTypes[0]);
|
||||
@@ -381,7 +381,7 @@ const Type *BytecodeReader::getGlobalTableType(unsigned Slot) {
|
||||
unsigned BytecodeReader::getGlobalTableTypeSlot(const Type *Ty) {
|
||||
if (Ty->isPrimitiveType())
|
||||
return Ty->getTypeID();
|
||||
TypeListTy::iterator I = find(ModuleTypes.begin(),
|
||||
TypeListTy::iterator I = std::find(ModuleTypes.begin(),
|
||||
ModuleTypes.end(), Ty);
|
||||
if (I == ModuleTypes.end())
|
||||
error("Didn't find type in ModuleTypes.");
|
||||
|
||||
Reference in New Issue
Block a user