diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-29 20:31:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-29 20:31:52 +0000 |
commit | 2cfd52c507bd5790457a171eb9bcb39019cc6860 (patch) | |
tree | 32ee499ddd00d0df27a59cdd085b5afab4c6f632 /include/llvm | |
parent | 0531d04d002c6d9489b4d1a85f49734e5c27e6f7 (diff) | |
download | external_llvm-2cfd52c507bd5790457a171eb9bcb39019cc6860.zip external_llvm-2cfd52c507bd5790457a171eb9bcb39019cc6860.tar.gz external_llvm-2cfd52c507bd5790457a171eb9bcb39019cc6860.tar.bz2 |
Give getPointerRegClass() a "kind" value so that targets can
support multiple different pointer register classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 9cd8489..9e57c0e 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -514,8 +514,9 @@ public: } /// getPointerRegClass - Returns a TargetRegisterClass used for pointer - /// values. - virtual const TargetRegisterClass *getPointerRegClass() const { + /// values. If a target supports multiple different pointer register classes, + /// kind specifies which one is indicated. + virtual const TargetRegisterClass *getPointerRegClass(unsigned Kind=0) const { assert(0 && "Target didn't implement getPointerRegClass!"); return 0; // Must return a value in order to compile with VS 2005 } |