Move helpers into anonymous namespaces. NFC.

llvm-svn: 277916
This commit is contained in:
Benjamin Kramer
2016-08-06 11:13:10 +00:00
parent 70c93fa69a
commit b7d3311c77
15 changed files with 32 additions and 24 deletions

View File

@@ -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;