Changes in directory llvm/lib/VMCore:
AsmWriter.cpp updated: 1.244 -> 1.245 --- Log message: simplify some logic further --- Diffs of the changes: (+2 -11) AsmWriter.cpp | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) Index: llvm/lib/VMCore/AsmWriter.cpp diff -u llvm/lib/VMCore/AsmWriter.cpp:1.244 llvm/lib/VMCore/AsmWriter.cpp:1.245 --- llvm/lib/VMCore/AsmWriter.cpp:1.244 Wed Jan 10 21:54:27 2007 +++ llvm/lib/VMCore/AsmWriter.cpp Wed Jan 10 22:30:21 2007 @@ -1516,17 +1516,8 @@ ValueMap::const_iterator FVI = FI->second.map.find(V); TypedPlanes::const_iterator MI = mMap.find(VTy); - // If the value doesn't exist in the function map - if (FVI == FI->second.map.end()) { - // Look up the value in the module map. - if (MI == mMap.end()) return -1; - ValueMap::const_iterator MVI = MI->second.map.find(V); - // If we didn't find it, it wasn't inserted - if (MVI == MI->second.map.end()) return -1; - assert(MVI != MI->second.map.end() && "Value not found"); - // We found it only at the module level - return MVI->second; - } + // If the value doesn't exist in the function map, it is a <badref> + if (FVI == FI->second.map.end()) return -1; // Return the slot number as the module's contribution to // the type plane plus the index in the function's contribution _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits