mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Remove CFIFuncName from TargetOptions as it is currently unused.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235268 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9765d2fa0
commit
46e3c5a0f7
@ -231,21 +231,6 @@ FCFI("fcfi",
|
|||||||
cl::desc("Apply forward-edge control-flow integrity"),
|
cl::desc("Apply forward-edge control-flow integrity"),
|
||||||
cl::init(false));
|
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
|
|
||||||
// will be generated that ignores all CFI violations. The expected signature for
|
|
||||||
// functions called with CFI violations is
|
|
||||||
//
|
|
||||||
// void (i8*, i8*)
|
|
||||||
//
|
|
||||||
// The first pointer is a C string containing the name of the function in which
|
|
||||||
// the violation occurs, and the second pointer is the pointer that violated
|
|
||||||
// CFI.
|
|
||||||
cl::opt<std::string>
|
|
||||||
CFIFuncName("cfi-func-name", cl::desc("The name of the CFI function to call"),
|
|
||||||
cl::init(""));
|
|
||||||
|
|
||||||
// Common utility function tightly tied to the options listed here. Initializes
|
// Common utility function tightly tied to the options listed here. Initializes
|
||||||
// a TargetOptions object with CodeGen flags and returns it.
|
// a TargetOptions object with CodeGen flags and returns it.
|
||||||
static inline TargetOptions InitTargetOptionsFromCodeGenFlags() {
|
static inline TargetOptions InitTargetOptionsFromCodeGenFlags() {
|
||||||
|
@ -73,8 +73,7 @@ namespace llvm {
|
|||||||
DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
|
DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
|
||||||
TrapFuncName(), FloatABIType(FloatABI::Default),
|
TrapFuncName(), FloatABIType(FloatABI::Default),
|
||||||
AllowFPOpFusion(FPOpFusion::Standard), JTType(JumpTable::Single),
|
AllowFPOpFusion(FPOpFusion::Standard), JTType(JumpTable::Single),
|
||||||
FCFI(false), ThreadModel(ThreadModel::POSIX),
|
FCFI(false), ThreadModel(ThreadModel::POSIX) {}
|
||||||
CFIFuncName() {}
|
|
||||||
|
|
||||||
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
/// PrintMachineCode - This flag is enabled when the -print-machineinstrs
|
||||||
/// option is specified on the command line, and should enable debugging
|
/// option is specified on the command line, and should enable debugging
|
||||||
@ -230,12 +229,6 @@ namespace llvm {
|
|||||||
/// for things like atomics
|
/// for things like atomics
|
||||||
ThreadModel::Model ThreadModel;
|
ThreadModel::Model ThreadModel;
|
||||||
|
|
||||||
/// 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.
|
|
||||||
std::string CFIFuncName;
|
|
||||||
StringRef getCFIFuncName() const;
|
|
||||||
|
|
||||||
/// Machine level options.
|
/// Machine level options.
|
||||||
MCTargetOptions MCOptions;
|
MCTargetOptions MCOptions;
|
||||||
};
|
};
|
||||||
@ -266,7 +259,6 @@ inline bool operator==(const TargetOptions &LHS,
|
|||||||
ARE_EQUAL(JTType) &&
|
ARE_EQUAL(JTType) &&
|
||||||
ARE_EQUAL(FCFI) &&
|
ARE_EQUAL(FCFI) &&
|
||||||
ARE_EQUAL(ThreadModel) &&
|
ARE_EQUAL(ThreadModel) &&
|
||||||
ARE_EQUAL(CFIFuncName) &&
|
|
||||||
ARE_EQUAL(MCOptions);
|
ARE_EQUAL(MCOptions);
|
||||||
#undef ARE_EQUAL
|
#undef ARE_EQUAL
|
||||||
}
|
}
|
||||||
|
@ -51,9 +51,3 @@ bool TargetOptions::HonorSignDependentRoundingFPMath() const {
|
|||||||
StringRef TargetOptions::getTrapFunctionName() const {
|
StringRef TargetOptions::getTrapFunctionName() const {
|
||||||
return TrapFuncName;
|
return TrapFuncName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 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.
|
|
||||||
StringRef TargetOptions::getCFIFuncName() const {
|
|
||||||
return CFIFuncName;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user