summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/TargetParser.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-08-29 01:38:47 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-08-29 01:38:47 +0000
commit9c9c8b22d2ea150cc889232871b0c8303d3644d9 (patch)
tree3594cc5dbd15acd553080a6be164799a8d8c504e /llvm/lib/Support/TargetParser.cpp
parentd9198907a693d8c2210c163c1638d23d50f7ccd5 (diff)
downloadbcm5719-llvm-9c9c8b22d2ea150cc889232871b0c8303d3644d9.tar.gz
bcm5719-llvm-9c9c8b22d2ea150cc889232871b0c8303d3644d9.zip
Start reserving x18 by default on Android targets.
Differential Revision: https://reviews.llvm.org/D45588 llvm-svn: 340889
Diffstat (limited to 'llvm/lib/Support/TargetParser.cpp')
-rw-r--r--llvm/lib/Support/TargetParser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Support/TargetParser.cpp b/llvm/lib/Support/TargetParser.cpp
index 20aae02f5e5..1f580378c01 100644
--- a/llvm/lib/Support/TargetParser.cpp
+++ b/llvm/lib/Support/TargetParser.cpp
@@ -943,7 +943,8 @@ unsigned llvm::AArch64::parseArchVersion(StringRef Arch) {
}
bool llvm::AArch64::isX18ReservedByDefault(const Triple &TT) {
- return TT.isOSDarwin() || TT.isOSFuchsia() || TT.isOSWindows();
+ return TT.isAndroid() || TT.isOSDarwin() || TT.isOSFuchsia() ||
+ TT.isOSWindows();
}
struct GPUInfo {
OpenPOWER on IntegriCloud