add a method proto, make a method not inline
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2004 00:54:47 +0000 (00:54 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2004 00:54:47 +0000 (00:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10921 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/SlotCalculator.h
include/llvm/SlotCalculator.h
lib/Bytecode/Writer/SlotCalculator.h

index 105e585d852f78fe8e3d0a266d3e017a767914cb..0bf4c42d986b93d058e45ff1c66e5d1ed1a23197 100644 (file)
@@ -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
index 105e585d852f78fe8e3d0a266d3e017a767914cb..0bf4c42d986b93d058e45ff1c66e5d1ed1a23197 100644 (file)
@@ -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
index 105e585d852f78fe8e3d0a266d3e017a767914cb..0bf4c42d986b93d058e45ff1c66e5d1ed1a23197 100644 (file)
@@ -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