summaryrefslogtreecommitdiff
path: root/lib/Target/TargetRegisterInfo.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-01 17:34:38 +0000
committerOwen Anderson <resistor@mac.com>2008-07-01 17:34:38 +0000
commit605041e5a81fbb18769b0613dcd14e0cff32b5ee (patch)
tree63a0b5abed202d33b165aa5f678910743afb564f /lib/Target/TargetRegisterInfo.cpp
parentb43f7e05ffbc4ff0bb1211e1d47c97b81cc806d8 (diff)
downloadllvm-605041e5a81fbb18769b0613dcd14e0cff32b5ee.tar.gz
llvm-605041e5a81fbb18769b0613dcd14e0cff32b5ee.tar.bz2
llvm-605041e5a81fbb18769b0613dcd14e0cff32b5ee.tar.xz
Make the subregister hashtable output more readable by wrapping the lines,
and mark it const along with the associated changes to TargetRegisterInfo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetRegisterInfo.cpp')
-rw-r--r--lib/Target/TargetRegisterInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Target/TargetRegisterInfo.cpp b/lib/Target/TargetRegisterInfo.cpp
index 3f44a0cb5a..37745ec95d 100644
--- a/lib/Target/TargetRegisterInfo.cpp
+++ b/lib/Target/TargetRegisterInfo.cpp
@@ -22,8 +22,10 @@ using namespace llvm;
TargetRegisterInfo::TargetRegisterInfo(const TargetRegisterDesc *D, unsigned NR,
regclass_iterator RCB, regclass_iterator RCE,
- int CFSO, int CFDO)
- : Desc(D), NumRegs(NR), RegClassBegin(RCB), RegClassEnd(RCE) {
+ int CFSO, int CFDO,
+ const unsigned* subregs, const unsigned subregsize)
+ : Desc(D), NumRegs(NR), RegClassBegin(RCB), RegClassEnd(RCE),
+ SubregHash(subregs), SubregHashSize(subregsize) {
assert(NumRegs < FirstVirtualRegister &&
"Target has too many physical registers!");