diff options
author | Chris Lattner <sabre@nondot.org> | 2004-12-09 06:19:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-12-09 06:19:44 +0000 |
commit | 389bd04b963f8f008e99f6caa1e09133b47dd5ce (patch) | |
tree | e994238f78768168e25eb173aea9a5adf759008a /lib/Bytecode/Reader/Reader.h | |
parent | 31127e1d89efe440d761497f29dbe646b23a2806 (diff) |
Remove a dead field, make the map go to integer type ID to hash better and
avoid a getType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | lib/Bytecode/Reader/Reader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h index 3733523975..06e021d482 100644 --- a/lib/Bytecode/Reader/Reader.h +++ b/lib/Bytecode/Reader/Reader.h @@ -102,7 +102,7 @@ public: /// This map is needed so that forward references to constants can be looked /// up by Type and slot number when resolving those references. /// @brief A mapping of a Type/slot pair to a Constant*. - typedef std::map<std::pair<const Type*,unsigned>, Constant*> ConstantRefsType; + typedef std::map<std::pair<unsigned,unsigned>, Constant*> ConstantRefsType; /// For lazy read-in of functions, we need to save the location in the /// data stream where the function is located. This structure provides that @@ -453,7 +453,7 @@ private: /// @brief Resolve all references to the placeholder (if any) for the /// given constant. - void ResolveReferencesToConstant(Constant *C, unsigned Slot); + void ResolveReferencesToConstant(Constant *C, unsigned Typ, unsigned Slot); /// @brief Release our memory. void freeState() { |