[llvm-commits] CVS: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 27 13:32:43 PST 2005
Changes in directory llvm-poolalloc/lib/PoolAllocate:
PoolAllocate.h updated: 1.43 -> 1.44
---
Log message:
introduce a typedef to reduce the size of typenames.
---
Diffs of the changes: (+3 -2)
PoolAllocate.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h
diff -u llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h:1.43 llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h:1.44
--- llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h:1.43 Wed Feb 16 12:10:40 2005
+++ llvm-poolalloc/lib/PoolAllocate/PoolAllocate.h Sun Feb 27 15:32:27 2005
@@ -77,14 +77,15 @@
/// contains a mapping from all of the values in the new function back to
/// the values they correspond to in the old function.
///
- std::map<Value*, const Value*> NewToOldValueMap;
+ typedef std::map<Value*, const Value*> NewToOldValueMapTy;
+ NewToOldValueMapTy NewToOldValueMap;
/// MapValueToOriginal - Given a value in the cloned version of this
/// function, map it back to the original. If the specified value did not
/// exist in the original function (e.g. because it's a pool descriptor),
/// return null.
Value *MapValueToOriginal(Value *V) const {
- std::map<Value*,const Value*>::const_iterator I =NewToOldValueMap.find(V);
+ NewToOldValueMapTy::const_iterator I = NewToOldValueMap.find(V);
return I != NewToOldValueMap.end() ? const_cast<Value*>(I->second) : 0;
}
};
More information about the llvm-commits
mailing list