[PATCH] D45588: Start reserving x18 by default on Android targets.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 12 13:16:24 PDT 2018


pcc created this revision.
pcc added reviewers: srhines, eugenis, vlad.tsyrklevich, kcc.
Herald added a subscriber: hiraditya.

https://reviews.llvm.org/D45588

Files:
  llvm/lib/Support/TargetParser.cpp


Index: llvm/lib/Support/TargetParser.cpp
===================================================================
--- llvm/lib/Support/TargetParser.cpp
+++ llvm/lib/Support/TargetParser.cpp
@@ -919,5 +919,6 @@
 }
 
 bool llvm::AArch64::isX18ReservedByDefault(const Triple &TT) {
-  return TT.isOSDarwin() || TT.isOSFuchsia() || TT.isOSWindows();
+  return TT.isAndroid() || TT.isOSDarwin() || TT.isOSFuchsia() ||
+         TT.isOSWindows();
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45588.142246.patch
Type: text/x-patch
Size: 439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180412/b469f92b/attachment.bin>


More information about the llvm-commits mailing list