[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp

Reid Spencer reid at x10sys.com
Wed Sep 15 10:06:53 PDT 2004



Changes in directory llvm/lib/Bytecode/Reader:

Reader.cpp updated: 1.129 -> 1.130
---
Log message:

Convert code to compile with vc7.1.

Patch contributed by Paolo Invernizzi. Thanks Paolo!


---
Diffs of the changes:  (+3 -3)

Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.129 llvm/lib/Bytecode/Reader/Reader.cpp:1.130
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.129	Fri Sep  3 13:19:51 2004
+++ llvm/lib/Bytecode/Reader/Reader.cpp	Wed Sep 15 12:06:41 2004
@@ -347,14 +347,14 @@
   }
 
   // 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 @@
 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.");






More information about the llvm-commits mailing list