summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/XCore/XCoreISelLowering.cpp
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2013-05-04 16:40:58 +0000
committerRichard Osborne <richard@xmos.com>2013-05-04 16:40:58 +0000
commitdf9e5741059dd9b22cd8fd69f855bfd0b9b63f38 (patch)
tree49786963c11ef0fe70f1f34336d684bf7aaa0faa /llvm/lib/Target/XCore/XCoreISelLowering.cpp
parentb2d998f356afa33c75f8c4119d455cf66fbec746 (diff)
downloadbcm5719-llvm-df9e5741059dd9b22cd8fd69f855bfd0b9b63f38.tar.gz
bcm5719-llvm-df9e5741059dd9b22cd8fd69f855bfd0b9b63f38.zip
[XCore] Use static relocation model by default.
This allows us to get get rid of a hack in XCoreTargetObjectFile where the the DataRel* sections were overridden. llvm-svn: 181116
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreISelLowering.cpp')
-rw-r--r--llvm/lib/Target/XCore/XCoreISelLowering.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.cpp b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
index a5d2be88db7..f0346f6715c 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.cpp
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.cpp
@@ -1623,6 +1623,12 @@ XCoreTargetLowering::isLegalAddressingMode(const AddrMode &AM,
}
}
+bool XCoreTargetLowering::
+isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const {
+ // The XCore target isn't yet aware of offsets.
+ return false;
+}
+
//===----------------------------------------------------------------------===//
// XCore Inline Assembly Support
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud