aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/MRegisterInfo.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-28 20:34:18 +0000
committerChris Lattner <sabre@nondot.org>2002-12-28 20:34:18 +0000
commit3ad764290179871ad00253e2b6e235596caa3db1 (patch)
tree0ebb385d2462061497ae3c861d49fc595f93a7c4 /lib/Target/MRegisterInfo.cpp
parentfde4b51baae5746bc8d7eccff7a9a1e2b6e6e8e9 (diff)
Capture more information in ctor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5190 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/MRegisterInfo.cpp')
-rw-r--r--lib/Target/MRegisterInfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/MRegisterInfo.cpp b/lib/Target/MRegisterInfo.cpp
index c47bb45440..d52777da53 100644
--- a/lib/Target/MRegisterInfo.cpp
+++ b/lib/Target/MRegisterInfo.cpp
@@ -7,7 +7,8 @@
#include "llvm/Target/MRegisterInfo.h"
MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
- regclass_iterator RCB, regclass_iterator RCE)
+ regclass_iterator RCB, regclass_iterator RCE,
+ int CFSO, int CFDO)
: Desc(D), NumRegs(NR), RegClassBegin(RCB), RegClassEnd(RCE) {
assert(NumRegs < FirstVirtualRegister &&
"Target has too many physical registers!");
@@ -24,6 +25,9 @@ MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
"Register in more than one class?");
PhysRegClasses[(*I)->getRegister(i)] = *I;
}
+
+ CallFrameSetupOpcode = CFSO;
+ CallFrameDestroyOpcode = CFDO;
}