From: Chris Lattner Date: Tue, 20 Jan 2004 00:54:47 +0000 (+0000) Subject: add a method proto, make a method not inline X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;ds=sidebyside;h=a2b4f93a1b8d22dab6b193d6c73ebfab966ab866;p=oota-llvm.git add a method proto, make a method not inline git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10921 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/SlotCalculator.h b/include/llvm/Analysis/SlotCalculator.h index 105e585d852..0bf4c42d986 100644 --- a/include/llvm/Analysis/SlotCalculator.h +++ b/include/llvm/Analysis/SlotCalculator.h @@ -92,13 +92,7 @@ public: return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0; } - inline const TypePlane &getPlane(unsigned Plane) const { - if (CompactionTable.empty() || CompactionTable.size() <= Plane || - CompactionTable[Plane].empty()) - return Table[Plane]; - else - return CompactionTable[Plane]; - } + TypePlane &getPlane(unsigned Plane); /// incorporateFunction/purgeFunction - If you'd like to deal with a function, /// use these two methods to get its data into the SlotCalculator! @@ -146,6 +140,7 @@ private: void buildCompactionTable(const Function *F); unsigned getOrCreateCompactionTableSlot(const Value *V); + void pruneCompactionTable(); }; } // End llvm namespace diff --git a/include/llvm/SlotCalculator.h b/include/llvm/SlotCalculator.h index 105e585d852..0bf4c42d986 100644 --- a/include/llvm/SlotCalculator.h +++ b/include/llvm/SlotCalculator.h @@ -92,13 +92,7 @@ public: return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0; } - inline const TypePlane &getPlane(unsigned Plane) const { - if (CompactionTable.empty() || CompactionTable.size() <= Plane || - CompactionTable[Plane].empty()) - return Table[Plane]; - else - return CompactionTable[Plane]; - } + TypePlane &getPlane(unsigned Plane); /// incorporateFunction/purgeFunction - If you'd like to deal with a function, /// use these two methods to get its data into the SlotCalculator! @@ -146,6 +140,7 @@ private: void buildCompactionTable(const Function *F); unsigned getOrCreateCompactionTableSlot(const Value *V); + void pruneCompactionTable(); }; } // End llvm namespace diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h index 105e585d852..0bf4c42d986 100644 --- a/lib/Bytecode/Writer/SlotCalculator.h +++ b/lib/Bytecode/Writer/SlotCalculator.h @@ -92,13 +92,7 @@ public: return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0; } - inline const TypePlane &getPlane(unsigned Plane) const { - if (CompactionTable.empty() || CompactionTable.size() <= Plane || - CompactionTable[Plane].empty()) - return Table[Plane]; - else - return CompactionTable[Plane]; - } + TypePlane &getPlane(unsigned Plane); /// incorporateFunction/purgeFunction - If you'd like to deal with a function, /// use these two methods to get its data into the SlotCalculator! @@ -146,6 +140,7 @@ private: void buildCompactionTable(const Function *F); unsigned getOrCreateCompactionTableSlot(const Value *V); + void pruneCompactionTable(); }; } // End llvm namespace