llvm.org GIT mirror llvm / b9765d2
Remove the CFIEnforcing flag from TargetOptions as it is unused. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235267 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 5 years ago
3 changed file(s) with 2 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
229229 FCFI("fcfi",
230230 cl::desc("Apply forward-edge control-flow integrity"),
231231 cl::init(false));
232
233 cl::opt
234 CFIEnforcing("cfi-enforcing",
235 cl::desc("Enforce CFI or pass the violation to a function."),
236 cl::init(false));
237232
238233 // Note that this option is linked to the cfi-enforcing option above: if
239234 // cfi-enforcing is set, then the cfi-func-name option is entirely ignored. If
279274 Options.MCOptions = InitMCTargetOptionsFromFlags();
280275 Options.JTType = JTableType;
281276 Options.FCFI = FCFI;
282 Options.CFIEnforcing = CFIEnforcing;
283 Options.CFIFuncName = CFIFuncName;
284277
285278 Options.ThreadModel = TMModel;
286279
7373 TrapFuncName(), FloatABIType(FloatABI::Default),
7474 AllowFPOpFusion(FPOpFusion::Standard), JTType(JumpTable::Single),
7575 FCFI(false), ThreadModel(ThreadModel::POSIX),
76 CFIEnforcing(false), CFIFuncName() {}
76 CFIFuncName() {}
7777
7878 /// PrintMachineCode - This flag is enabled when the -print-machineinstrs
7979 /// option is specified on the command line, and should enable debugging
228228 /// ThreadModel - This flag specifies the type of threading model to assume
229229 /// for things like atomics
230230 ThreadModel::Model ThreadModel;
231
232 /// CFIEnforcing - This flags controls whether or not CFI violations cause
233 /// the program to halt.
234 bool CFIEnforcing;
235231
236232 /// getCFIFuncName - If this returns a non-empty string, then this is the
237233 /// name of the function that will be called for each CFI violation in
269265 ARE_EQUAL(JTType) &&
270266 ARE_EQUAL(FCFI) &&
271267 ARE_EQUAL(ThreadModel) &&
272 ARE_EQUAL(CFIEnforcing) &&
273268 ARE_EQUAL(CFIFuncName) &&
274269 ARE_EQUAL(MCOptions);
275270 #undef ARE_EQUAL
5252 }
5353
5454 /// getCFIFuncName - If this returns a non-empty string, then it is the name of
55 /// the function that gets called on CFI violations in CFI non-enforcing mode
56 /// (!TargetOptions::CFIEnforcing).
55 /// the function that gets called on CFI violations in CFI non-enforcing mode.
5756 StringRef TargetOptions::getCFIFuncName() const {
5857 return CFIFuncName;
5958 }