summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveRegMatrix.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:13:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-08-06 11:13:10 +0000
commitb7d3311c77f5785ebf6e4749a7ad1ec00381570e (patch)
treee482263f25969ba10beedebe2eae61c2023f0c9d /llvm/lib/CodeGen/LiveRegMatrix.cpp
parent70c93fa69a755472e9ddd83afe3513729c353eb5 (diff)
downloadbcm5719-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.cpp7
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;
OpenPOWER on IntegriCloud