From 0132599b8d51201360f707cea72164f81fb6a226 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 10 Feb 2007 05:18:35 +0000 Subject: make getSlot/getTypeSlot inline llvm-svn: 34130 --- llvm/lib/Bytecode/Writer/SlotCalculator.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'llvm/lib/Bytecode/Writer/SlotCalculator.cpp') diff --git a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp index 172da73f136..dfb87b48ece 100644 --- a/llvm/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/llvm/lib/Bytecode/Writer/SlotCalculator.cpp @@ -278,18 +278,6 @@ void SlotCalculator::purgeFunction() { SC_DEBUG("end purgeFunction!\n"); } -unsigned SlotCalculator::getSlot(const Value *V) const { - std::map::const_iterator I = NodeMap.find(V); - assert(I != NodeMap.end() && "Value not in slotcalculator!"); - return (int)I->second; -} - -unsigned SlotCalculator::getTypeSlot(const Type*T) const { - std::map::const_iterator I = TypeMap.find(T); - assert(I != TypeMap.end() && "Type not in slotcalc!"); - return I->second; -} - void SlotCalculator::CreateSlotIfNeeded(const Value *V) { // Check to see if it's already in! if (NodeMap.count(V)) return; -- cgit v1.2.3