From dec628eead87b20773c98a00830580df211acc98 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 12 Feb 2007 05:18:08 +0000 Subject: Switch ValueSymbolTable to use StringMap instead of std::map as its main datastructure. There are many improvements yet to be made, but this speeds up opt --std-compile-opts on 447.dealII by 7.3%. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34193 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/SlotCalculator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Bytecode/Writer/SlotCalculator.cpp') diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 0c8ba48be7..43ad922e2b 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -199,7 +199,7 @@ void SlotCalculator::processTypeSymbolTable(const TypeSymbolTable *TST) { void SlotCalculator::processValueSymbolTable(const ValueSymbolTable *VST) { for (ValueSymbolTable::const_iterator VI = VST->begin(), VE = VST->end(); VI != VE; ++VI) - CreateSlotIfNeeded(VI->second); + CreateSlotIfNeeded(VI->getValue()); } void SlotCalculator::CreateSlotIfNeeded(const Value *V) { -- cgit v1.2.3