diff options
author | Richard Osborne <richard@xmos.com> | 2013-05-04 17:24:33 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-05-04 17:24:33 +0000 |
commit | 6ffbf6ea8fe7fbe2166b07a88004baac163aa3c5 (patch) | |
tree | 3866b286f1f4b9d1a2f78eeee5a973a62bc64f56 /lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp | |
parent | 40827bc716e9eda3e70460207696f2ec10dd67ad (diff) |
[XCore] Make use of the target independent global address offset folding.
This let us to remove some custom code that matched constant offsets
from globals at instruction selection time as a special addressing mode.
No intended functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181126 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp')
-rw-r--r-- | lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp b/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp index 1592351c38..9ae8c0d088 100644 --- a/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp +++ b/lib/Target/XCore/InstPrinter/XCoreInstPrinter.cpp @@ -84,14 +84,3 @@ printOperand(const MCInst *MI, unsigned OpNo, raw_ostream &O) { assert(Op.isExpr() && "unknown operand kind in printOperand"); printExpr(Op.getExpr(), O); } - -void XCoreInstPrinter:: -printMemOperand(const MCInst *MI, int opNum, raw_ostream &O) { - printOperand(MI, opNum, O); - - if (MI->getOperand(opNum+1).isImm() && MI->getOperand(opNum+1).getImm() == 0) - return; - - O << "+"; - printOperand(MI, opNum+1, O); -} |