diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-06 11:13:10 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-08-06 11:13:10 +0000 |
commit | b7d3311c77f5785ebf6e4749a7ad1ec00381570e (patch) | |
tree | e482263f25969ba10beedebe2eae61c2023f0c9d /llvm/lib/CodeGen/LiveRegMatrix.cpp | |
parent | 70c93fa69a755472e9ddd83afe3513729c353eb5 (diff) | |
download | bcm5719-llvm-b7d3311c77f5785ebf6e4749a7ad1ec00381570e.tar.gz bcm5719-llvm-b7d3311c77f5785ebf6e4749a7ad1ec00381570e.zip |
Move helpers into anonymous namespaces. NFC.
llvm-svn: 277916
Diffstat (limited to 'llvm/lib/CodeGen/LiveRegMatrix.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveRegMatrix.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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<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; |