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
diff --git a/lib/Bytecode/Reader/Analyzer.cpp b/lib/Bytecode/Reader/Analyzer.cpp
index 8ed3301..f6739ae 100644
--- a/lib/Bytecode/Reader/Analyzer.cpp
+++ b/lib/Bytecode/Reader/Analyzer.cpp
@@ -218,14 +218,10 @@
<< " 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() {