summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-05-17 18:29:21 +0000
committerJim Grosbach <grosbach@apple.com>2011-05-17 18:29:21 +0000
commit4f51873f22db6f1a85e9d6f92d1999bfc2338541 (patch)
tree594a4a0d6f9ff0d4a237ea8dbbfb713c9771650a /llvm/include
parent7b27942fe7ef59895b484daefc4a312bb74ef8ae (diff)
downloadbcm5719-llvm-4f51873f22db6f1a85e9d6f92d1999bfc2338541.tar.gz
bcm5719-llvm-4f51873f22db6f1a85e9d6f92d1999bfc2338541.zip
Frame indices are signed. Update MachineOperand methods accordingly.
llvm-svn: 131475
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/CodeGen/MachineInstrBuilder.h2
-rw-r--r--llvm/include/llvm/CodeGen/MachineOperand.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
index 967e0197bb7..c8183a3d8c5 100644
--- a/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/llvm/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -88,7 +88,7 @@ public:
return *this;
}
- const MachineInstrBuilder &addFrameIndex(unsigned Idx) const {
+ const MachineInstrBuilder &addFrameIndex(int Idx) const {
MI->addOperand(MachineOperand::CreateFI(Idx));
return *this;
}
diff --git a/llvm/include/llvm/CodeGen/MachineOperand.h b/llvm/include/llvm/CodeGen/MachineOperand.h
index 8acc9490d8d..d506e17e706 100644
--- a/llvm/include/llvm/CodeGen/MachineOperand.h
+++ b/llvm/include/llvm/CodeGen/MachineOperand.h
@@ -473,7 +473,7 @@ public:
Op.setTargetFlags(TargetFlags);
return Op;
}
- static MachineOperand CreateFI(unsigned Idx) {
+ static MachineOperand CreateFI(int Idx) {
MachineOperand Op(MachineOperand::MO_FrameIndex);
Op.setIndex(Idx);
return Op;
OpenPOWER on IntegriCloud