summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbba09b3f7fccc9f4d1d0184d5922dffecd76e023 (patch)
treee395ab21cf3bffc9edb75a2e9f3efad6a25e291c /llvm/lib/Bytecode/Reader/Reader.h
parent6494081cce584eecaa5a44e2a297a49b70b195ee (diff)
downloadbcm5719-llvm-bba09b3f7fccc9f4d1d0184d5922dffecd76e023.tar.gz
bcm5719-llvm-bba09b3f7fccc9f4d1d0184d5922dffecd76e023.zip
Make getGlobalTableValue not use getTypeSlot, this speeds up the bc reader
by 5% on eon llvm-svn: 15452
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.h')
-rw-r--r--llvm/lib/Bytecode/Reader/Reader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h
index 90853a927d2..ad8b2655b72 100644
--- a/llvm/lib/Bytecode/Reader/Reader.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud