summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2017-02-24 03:10:10 +0000
committerPetr Hosek <phosek@chromium.org>2017-02-24 03:10:10 +0000
commita7d5916308907624199161b9454487cc30482341 (patch)
treeffb71b923a74d32f80fa665f057350b9e1e2753e /llvm/lib/Target/X86/X86Subtarget.h
parent7e0ce82c4a6a2559c0acb67a92bd6e91bfc4240b (diff)
downloadbcm5719-llvm-a7d5916308907624199161b9454487cc30482341.tar.gz
bcm5719-llvm-a7d5916308907624199161b9454487cc30482341.zip
[Fuchsia] Use thread-pointer ABI slots for stack-protector and safe-stack
The Fuchsia ABI defines slots from the thread pointer where the stack-guard value for stack-protector, and the unsafe stack pointer for safe-stack, are stored. This parallels the Android ABI support. Patch by Roland McGrath Differential Revision: https://reviews.llvm.org/D30237 llvm-svn: 296081
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 75b87a04e51..1218d986198 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -518,6 +518,7 @@ public:
bool isTargetNaCl32() const { return isTargetNaCl() && !is64Bit(); }
bool isTargetNaCl64() const { return isTargetNaCl() && is64Bit(); }
bool isTargetMCU() const { return TargetTriple.isOSIAMCU(); }
+ bool isTargetFuchsia() const { return TargetTriple.isOSFuchsia(); }
bool isTargetWindowsMSVC() const {
return TargetTriple.isWindowsMSVCEnvironment();
OpenPOWER on IntegriCloud