aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-21 17:47:50 +0000
committerChris Lattner <sabre@nondot.org>2010-05-21 17:47:50 +0000
commit65569b8ddff9d4b8647377291f8f0f2cb647bfb9 (patch)
tree553839a62d8618bedfbd9cf264250520be634fbd /include
parent19f5f71bba08e690611fa213647ac6bae814756b (diff)
downloadexternal_llvm-65569b8ddff9d4b8647377291f8f0f2cb647bfb9.zip
external_llvm-65569b8ddff9d4b8647377291f8f0f2cb647bfb9.tar.gz
external_llvm-65569b8ddff9d4b8647377291f8f0f2cb647bfb9.tar.bz2
constify accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineRegisterInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h
index fd7431f..dede05f 100644
--- a/include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/include/llvm/CodeGen/MachineRegisterInfo.h
@@ -216,7 +216,8 @@ public:
/// getRegClassVirtRegs - Return the list of virtual registers of the given
/// target register class.
- std::vector<unsigned> &getRegClassVirtRegs(const TargetRegisterClass *RC) {
+ const std::vector<unsigned> &
+ getRegClassVirtRegs(const TargetRegisterClass *RC) const {
return RegClass2VRegMap[RC->getID()];
}