mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
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
This commit is contained in:
@@ -92,13 +92,7 @@ public:
|
|||||||
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const TypePlane &getPlane(unsigned Plane) const {
|
TypePlane &getPlane(unsigned Plane);
|
||||||
if (CompactionTable.empty() || CompactionTable.size() <= Plane ||
|
|
||||||
CompactionTable[Plane].empty())
|
|
||||||
return Table[Plane];
|
|
||||||
else
|
|
||||||
return CompactionTable[Plane];
|
|
||||||
}
|
|
||||||
|
|
||||||
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||||
/// use these two methods to get its data into the SlotCalculator!
|
/// use these two methods to get its data into the SlotCalculator!
|
||||||
@@ -146,6 +140,7 @@ private:
|
|||||||
|
|
||||||
void buildCompactionTable(const Function *F);
|
void buildCompactionTable(const Function *F);
|
||||||
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
||||||
|
void pruneCompactionTable();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@@ -92,13 +92,7 @@ public:
|
|||||||
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const TypePlane &getPlane(unsigned Plane) const {
|
TypePlane &getPlane(unsigned Plane);
|
||||||
if (CompactionTable.empty() || CompactionTable.size() <= Plane ||
|
|
||||||
CompactionTable[Plane].empty())
|
|
||||||
return Table[Plane];
|
|
||||||
else
|
|
||||||
return CompactionTable[Plane];
|
|
||||||
}
|
|
||||||
|
|
||||||
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||||
/// use these two methods to get its data into the SlotCalculator!
|
/// use these two methods to get its data into the SlotCalculator!
|
||||||
@@ -146,6 +140,7 @@ private:
|
|||||||
|
|
||||||
void buildCompactionTable(const Function *F);
|
void buildCompactionTable(const Function *F);
|
||||||
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
||||||
|
void pruneCompactionTable();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@@ -92,13 +92,7 @@ public:
|
|||||||
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
return Plane < ModuleLevel.size() ? ModuleLevel[Plane] : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline const TypePlane &getPlane(unsigned Plane) const {
|
TypePlane &getPlane(unsigned Plane);
|
||||||
if (CompactionTable.empty() || CompactionTable.size() <= Plane ||
|
|
||||||
CompactionTable[Plane].empty())
|
|
||||||
return Table[Plane];
|
|
||||||
else
|
|
||||||
return CompactionTable[Plane];
|
|
||||||
}
|
|
||||||
|
|
||||||
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
/// incorporateFunction/purgeFunction - If you'd like to deal with a function,
|
||||||
/// use these two methods to get its data into the SlotCalculator!
|
/// use these two methods to get its data into the SlotCalculator!
|
||||||
@@ -146,6 +140,7 @@ private:
|
|||||||
|
|
||||||
void buildCompactionTable(const Function *F);
|
void buildCompactionTable(const Function *F);
|
||||||
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
unsigned getOrCreateCompactionTableSlot(const Value *V);
|
||||||
|
void pruneCompactionTable();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
Reference in New Issue
Block a user