summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Analyzer.cpp
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/Analyzer.cpp
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/Analyzer.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/Analyzer.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/lib/Bytecode/Reader/Analyzer.cpp b/llvm/lib/Bytecode/Reader/Analyzer.cpp
index 8ed33014784..f6739ae3c6f 100644
--- a/llvm/lib/Bytecode/Reader/Analyzer.cpp
+++ b/llvm/lib/Bytecode/Reader/Analyzer.cpp
@@ -218,14 +218,10 @@ public:
<< " is " << Ty->getDescription() << "\n";
}
- virtual void handleCompactionTableValue(
- unsigned i,
- unsigned TypSlot,
- unsigned ValSlot,
- const Type* Ty ) {
+ virtual void handleCompactionTableValue(unsigned i, unsigned TypSlot,
+ unsigned ValSlot) {
dump << " Value: " << i << " TypSlot: " << TypSlot
- << " ValSlot:" << ValSlot << " is " << Ty->getDescription()
- << "\n";
+ << " ValSlot:" << ValSlot << "\n";
}
virtual void handleCompactionTableEnd() {
OpenPOWER on IntegriCloud