summaryrefslogtreecommitdiffstats
path: root/include/clang/Basic/TargetInfo.h
diff options
context:
space:
mode:
authorAlexander Ivchenko <alexander.ivchenko@intel.com>2018-05-18 11:56:21 +0000
committerAlexander Ivchenko <alexander.ivchenko@intel.com>2018-05-18 11:56:21 +0000
commit4fb03d76800a4b62cfa545c048a8fe47c44d8a94 (patch)
tree9b8165004b1e21b52e8efb904451b0af635cafd6 /include/clang/Basic/TargetInfo.h
parent9d9b33c8989461d0a4faffa865da817cba4d0bf4 (diff)
This patch aims to match the changes introduced
in gcc by https://gcc.gnu.org/ml/gcc-cvs/2018-04/msg00534.html. The -mibt feature flag is being removed, and the -fcf-protection option now also defines a CET macro and causes errors when used on non-X86 targets, while X86 targets no longer check for -mibt and -mshstk to determine if -fcf-protection is supported. -mshstk is now used only to determine availability of shadow stack intrinsics. Comes with an LLVM patch (D46882). Patch by mike.dvoretsky Differential Revision: https://reviews.llvm.org/D46881 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@332704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetInfo.h')
-rw-r--r--include/clang/Basic/TargetInfo.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/clang/Basic/TargetInfo.h b/include/clang/Basic/TargetInfo.h
index 6af4793478..b8e45e64d5 100644
--- a/include/clang/Basic/TargetInfo.h
+++ b/include/clang/Basic/TargetInfo.h
@@ -1075,15 +1075,11 @@ public:
/// Check if the target supports CFProtection branch.
virtual bool
- checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const {
- return false;
- }
+ checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const;
/// Check if the target supports CFProtection branch.
virtual bool
- checkCFProtectionReturnSupported(DiagnosticsEngine &Diags) const {
- return false;
- }
+ checkCFProtectionReturnSupported(DiagnosticsEngine &Diags) const;
/// Whether target allows to overalign ABI-specified preferred alignment
virtual bool allowsLargerPreferedTypeAlignment() const { return true; }