aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreTargetTransformInfo.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/XCore/XCoreTargetTransformInfo.h')
-rw-r--r--lib/Target/XCore/XCoreTargetTransformInfo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreTargetTransformInfo.h b/lib/Target/XCore/XCoreTargetTransformInfo.h
index 3fecaaa59722..58df1f290ec9 100644
--- a/lib/Target/XCore/XCoreTargetTransformInfo.h
+++ b/lib/Target/XCore/XCoreTargetTransformInfo.h
@@ -40,7 +40,8 @@ public:
: BaseT(TM, F.getParent()->getDataLayout()), ST(TM->getSubtargetImpl()),
TLI(ST->getTargetLowering()) {}
- unsigned getNumberOfRegisters(bool Vector) {
+ unsigned getNumberOfRegisters(unsigned ClassID) const {
+ bool Vector = (ClassID == 1);
if (Vector) {
return 0;
}