summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2015-12-16 20:43:08 +0000
committerDerek Schuff <dschuff@google.com>2015-12-16 20:43:08 +0000
commit83717cc2976e644027065abb6ea375fa26dbfebe (patch)
treefdd847e3789b566a02eaf064d02c0501291d187e /llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
parent45cd5a79b24ea75b4d746eae53d3eb8f84a63c2e (diff)
downloadbcm5719-llvm-83717cc2976e644027065abb6ea375fa26dbfebe.tar.gz
bcm5719-llvm-83717cc2976e644027065abb6ea375fa26dbfebe.zip
Iterate over phys regs instead
llvm-svn: 255816
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
index e3c7f41189b..6a60280900a 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
@@ -89,6 +89,7 @@ public:
assert(WAReg < -1U);
PhysRegs[PReg] = WAReg;
}
+ const std::vector<unsigned> &getPhysRegs() const { return PhysRegs; }
};
} // end namespace llvm
OpenPOWER on IntegriCloud