diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-05-21 17:47:50 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-05-21 17:47:50 +0000 |
| commit | 65569b8ddff9d4b8647377291f8f0f2cb647bfb9 (patch) | |
| tree | 553839a62d8618bedfbd9cf264250520be634fbd /include/llvm/CodeGen | |
| parent | 19f5f71bba08e690611fa213647ac6bae814756b (diff) | |
constify accessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
| -rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index fd7431ff0b..dede05f85c 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()]; } |
