Move helpers into anonymous namespaces. NFC.
llvm-svn: 277916
This commit is contained in:
@@ -70,9 +70,10 @@ void LiveRegMatrix::releaseMemory() {
|
||||
}
|
||||
}
|
||||
|
||||
template<typename Callable>
|
||||
bool foreachUnit(const TargetRegisterInfo *TRI, LiveInterval &VRegInterval,
|
||||
unsigned PhysReg, Callable Func) {
|
||||
template <typename Callable>
|
||||
static bool foreachUnit(const TargetRegisterInfo *TRI,
|
||||
LiveInterval &VRegInterval, unsigned PhysReg,
|
||||
Callable Func) {
|
||||
if (VRegInterval.hasSubRanges()) {
|
||||
for (MCRegUnitMaskIterator Units(PhysReg, TRI); Units.isValid(); ++Units) {
|
||||
unsigned Unit = (*Units).first;
|
||||
|
||||
Reference in New Issue
Block a user