aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Writer/SlotCalculator.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.h b/lib/Bytecode/Writer/SlotCalculator.h
index 105e585d85..0bf4c42d98 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