mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Make SlotCalculator::getPlane an inline function. It is used inside loops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34091 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -87,7 +87,14 @@ public:
|
||||
return ModuleTypeLevel;
|
||||
}
|
||||
|
||||
TypePlane &getPlane(unsigned Plane);
|
||||
TypePlane &getPlane(unsigned Plane) {
|
||||
// Okay we are just returning an entry out of the main Table. Make sure the
|
||||
// plane exists and return it.
|
||||
if (Plane >= Table.size())
|
||||
Table.resize(Plane+1);
|
||||
return Table[Plane];
|
||||
}
|
||||
|
||||
TypeList& getTypes() { return Types; }
|
||||
|
||||
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||
|
||||
Reference in New Issue
Block a user