From b7d3311c77f5785ebf6e4749a7ad1ec00381570e Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 6 Aug 2016 11:13:10 +0000 Subject: Move helpers into anonymous namespaces. NFC. llvm-svn: 277916 --- llvm/lib/CodeGen/LiveRegMatrix.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp') diff --git a/llvm/lib/CodeGen/LiveRegMatrix.cpp b/llvm/lib/CodeGen/LiveRegMatrix.cpp index 7ee87c1e650..088a92d162b 100644 --- a/llvm/lib/CodeGen/LiveRegMatrix.cpp +++ b/llvm/lib/CodeGen/LiveRegMatrix.cpp @@ -70,9 +70,10 @@ void LiveRegMatrix::releaseMemory() { } } -template -bool foreachUnit(const TargetRegisterInfo *TRI, LiveInterval &VRegInterval, - unsigned PhysReg, Callable Func) { +template +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; -- cgit v1.2.3