diff options
author | Eric Christopher <echristo@gmail.com> | 2015-04-19 03:20:59 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-04-19 03:20:59 +0000 |
commit | 78804ab2df11e3aed890ab83ac4d2bcee9decb88 (patch) | |
tree | cd481a3865423c7f28fc338d2c11b38aeafb7af8 | |
parent | cc36f41258807dd784b7de5861ad151836910eb0 (diff) | |
download | bcm5719-llvm-78804ab2df11e3aed890ab83ac4d2bcee9decb88.tar.gz bcm5719-llvm-78804ab2df11e3aed890ab83ac4d2bcee9decb88.zip |
Remove the CFIEnforcing flag from TargetOptions as it is unused.
llvm-svn: 235267
-rw-r--r-- | llvm/include/llvm/CodeGen/CommandFlags.h | 7 | ||||
-rw-r--r-- | llvm/include/llvm/Target/TargetOptions.h | 7 | ||||
-rw-r--r-- | llvm/lib/CodeGen/TargetOptionsImpl.cpp | 3 |
3 files changed, 2 insertions, 15 deletions
diff --git a/llvm/include/llvm/CodeGen/CommandFlags.h b/llvm/include/llvm/CodeGen/CommandFlags.h index ef3e88b5ca2..ccd1bb3bb0b 100644 --- a/llvm/include/llvm/CodeGen/CommandFlags.h +++ b/llvm/include/llvm/CodeGen/CommandFlags.h @@ -231,11 +231,6 @@ FCFI("fcfi", cl::desc("Apply forward-edge control-flow integrity"), cl::init(false)); -cl::opt<bool> -CFIEnforcing("cfi-enforcing", - cl::desc("Enforce CFI or pass the violation to a function."), - cl::init(false)); - // Note that this option is linked to the cfi-enforcing option above: if // cfi-enforcing is set, then the cfi-func-name option is entirely ignored. If // cfi-enforcing is false and no cfi-func-name is set, then a default function @@ -280,8 +275,6 @@ static inline TargetOptions InitTargetOptionsFromCodeGenFlags() { Options.MCOptions = InitMCTargetOptionsFromFlags(); Options.JTType = JTableType; Options.FCFI = FCFI; - Options.CFIEnforcing = CFIEnforcing; - Options.CFIFuncName = CFIFuncName; Options.ThreadModel = TMModel; diff --git a/llvm/include/llvm/Target/TargetOptions.h b/llvm/include/llvm/Target/TargetOptions.h index 5c63588767e..b41fcdb149e 100644 --- a/llvm/include/llvm/Target/TargetOptions.h +++ b/llvm/include/llvm/Target/TargetOptions.h @@ -74,7 +74,7 @@ namespace llvm { TrapFuncName(), FloatABIType(FloatABI::Default), AllowFPOpFusion(FPOpFusion::Standard), JTType(JumpTable::Single), FCFI(false), ThreadModel(ThreadModel::POSIX), - CFIEnforcing(false), CFIFuncName() {} + CFIFuncName() {} /// PrintMachineCode - This flag is enabled when the -print-machineinstrs /// option is specified on the command line, and should enable debugging @@ -230,10 +230,6 @@ namespace llvm { /// for things like atomics ThreadModel::Model ThreadModel; - /// CFIEnforcing - This flags controls whether or not CFI violations cause - /// the program to halt. - bool CFIEnforcing; - /// getCFIFuncName - If this returns a non-empty string, then this is the /// name of the function that will be called for each CFI violation in /// non-enforcing mode. @@ -270,7 +266,6 @@ inline bool operator==(const TargetOptions &LHS, ARE_EQUAL(JTType) && ARE_EQUAL(FCFI) && ARE_EQUAL(ThreadModel) && - ARE_EQUAL(CFIEnforcing) && ARE_EQUAL(CFIFuncName) && ARE_EQUAL(MCOptions); #undef ARE_EQUAL diff --git a/llvm/lib/CodeGen/TargetOptionsImpl.cpp b/llvm/lib/CodeGen/TargetOptionsImpl.cpp index 618d903a090..41c66bb8dc2 100644 --- a/llvm/lib/CodeGen/TargetOptionsImpl.cpp +++ b/llvm/lib/CodeGen/TargetOptionsImpl.cpp @@ -53,8 +53,7 @@ StringRef TargetOptions::getTrapFunctionName() const { } /// getCFIFuncName - If this returns a non-empty string, then it is the name of -/// the function that gets called on CFI violations in CFI non-enforcing mode -/// (!TargetOptions::CFIEnforcing). +/// the function that gets called on CFI violations in CFI non-enforcing mode. StringRef TargetOptions::getCFIFuncName() const { return CFIFuncName; } |