mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-16 07:38:43 +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:
parent
d748ea32db
commit
394355e4cc
@ -87,14 +87,6 @@ SlotCalculator::SlotCalculator(const Function *M ) {
|
|||||||
incorporateFunction(M); // Start out in incorporated state
|
incorporateFunction(M); // Start out in incorporated state
|
||||||
}
|
}
|
||||||
|
|
||||||
SlotCalculator::TypePlane &SlotCalculator::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];
|
|
||||||
}
|
|
||||||
|
|
||||||
// processModule - Process all of the module level function declarations and
|
// processModule - Process all of the module level function declarations and
|
||||||
// types that are available.
|
// types that are available.
|
||||||
//
|
//
|
||||||
|
@ -87,7 +87,14 @@ public:
|
|||||||
return ModuleTypeLevel;
|
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; }
|
TypeList& getTypes() { return Types; }
|
||||||
|
|
||||||
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user