aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/Reader.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-04 00:19:23 +0000
committerChris Lattner <sabre@nondot.org>2004-08-04 00:19:23 +0000
commit2c6c14d1a5ef519448b6ec9e03545b90bf712483 (patch)
treec8848b00c9d4f837dfed2b0e15291c50abc73324 /lib/Bytecode/Reader/Reader.h
parent064e9a9ef8e995ab986e0500e603612deac5bd2f (diff)
Make getGlobalTableValue not use getTypeSlot, this speeds up the bc reader
by 5% on eon git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Reader.h')
-rw-r--r--lib/Bytecode/Reader/Reader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Bytecode/Reader/Reader.h b/lib/Bytecode/Reader/Reader.h
index 90853a927d..ad8b2655b7 100644
--- a/lib/Bytecode/Reader/Reader.h
+++ b/lib/Bytecode/Reader/Reader.h
@@ -395,8 +395,9 @@ private:
/// @brief Get a value from its typeid and slot number
Value* getValue(unsigned TypeID, unsigned num, bool Create = true);
- /// @brief Get a value from its type and slot number, ignoring compaction tables.
- Value *getGlobalTableValue(const Type *Ty, unsigned SlotNo);
+ /// @brief Get a value from its type and slot number, ignoring compaction
+ /// tables.
+ Value *getGlobalTableValue(unsigned TyID, unsigned SlotNo);
/// @brief Get a basic block for current function
BasicBlock *getBasicBlock(unsigned ID);