forked from OSchip/llvm-project
Remove mostly unused setters.
Most of the code was setting the TargetOptions directly. llvm-svn: 228961
This commit is contained in:
parent
c074de041b
commit
3105fd8335
|
@ -165,28 +165,23 @@ public:
|
||||||
|
|
||||||
bool shouldPrintMachineCode() const { return Options.PrintMachineCode; }
|
bool shouldPrintMachineCode() const { return Options.PrintMachineCode; }
|
||||||
|
|
||||||
/// getAsmVerbosityDefault - Returns the default value of asm verbosity.
|
/// Returns the default value of asm verbosity.
|
||||||
///
|
///
|
||||||
bool getAsmVerbosityDefault() const ;
|
bool getAsmVerbosityDefault() const {
|
||||||
|
return Options.MCOptions.AsmVerbose;
|
||||||
|
}
|
||||||
|
|
||||||
/// setAsmVerbosityDefault - Set the default value of asm verbosity. Default
|
/// Return true if data objects should be emitted into their own section,
|
||||||
/// is false.
|
/// corresponds to -fdata-sections.
|
||||||
void setAsmVerbosityDefault(bool);
|
bool getDataSections() const {
|
||||||
|
return Options.DataSections;
|
||||||
|
}
|
||||||
|
|
||||||
/// getDataSections - Return true if data objects should be emitted into their
|
/// Return true if functions should be emitted into their own section,
|
||||||
/// own section, corresponds to -fdata-sections.
|
/// corresponding to -ffunction-sections.
|
||||||
bool getDataSections() const;
|
bool getFunctionSections() const {
|
||||||
|
return Options.FunctionSections;
|
||||||
/// getFunctionSections - Return true if functions should be emitted into
|
}
|
||||||
/// their own section, corresponding to -ffunction-sections.
|
|
||||||
bool getFunctionSections() const;
|
|
||||||
|
|
||||||
/// setDataSections - Set if the data are emit into separate sections.
|
|
||||||
void setDataSections(bool);
|
|
||||||
|
|
||||||
/// setFunctionSections - Set if the functions are emit into separate
|
|
||||||
/// sections.
|
|
||||||
void setFunctionSections(bool);
|
|
||||||
|
|
||||||
/// \brief Get a \c TargetIRAnalysis appropriate for the target.
|
/// \brief Get a \c TargetIRAnalysis appropriate for the target.
|
||||||
///
|
///
|
||||||
|
|
|
@ -148,30 +148,6 @@ void TargetMachine::setOptLevel(CodeGenOpt::Level Level) const {
|
||||||
CodeGenInfo->setOptLevel(Level);
|
CodeGenInfo->setOptLevel(Level);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TargetMachine::getAsmVerbosityDefault() const {
|
|
||||||
return Options.MCOptions.AsmVerbose;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TargetMachine::setAsmVerbosityDefault(bool V) {
|
|
||||||
Options.MCOptions.AsmVerbose = V;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TargetMachine::getFunctionSections() const {
|
|
||||||
return Options.FunctionSections;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool TargetMachine::getDataSections() const {
|
|
||||||
return Options.DataSections;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TargetMachine::setFunctionSections(bool V) {
|
|
||||||
Options.FunctionSections = V;
|
|
||||||
}
|
|
||||||
|
|
||||||
void TargetMachine::setDataSections(bool V) {
|
|
||||||
Options.DataSections = V;
|
|
||||||
}
|
|
||||||
|
|
||||||
TargetIRAnalysis TargetMachine::getTargetIRAnalysis() {
|
TargetIRAnalysis TargetMachine::getTargetIRAnalysis() {
|
||||||
return TargetIRAnalysis(
|
return TargetIRAnalysis(
|
||||||
[this](Function &) { return TargetTransformInfo(getDataLayout()); });
|
[this](Function &) { return TargetTransformInfo(getDataLayout()); });
|
||||||
|
|
|
@ -179,7 +179,7 @@ LLVMTargetDataRef LLVMGetTargetMachineData(LLVMTargetMachineRef T) {
|
||||||
|
|
||||||
void LLVMSetTargetMachineAsmVerbosity(LLVMTargetMachineRef T,
|
void LLVMSetTargetMachineAsmVerbosity(LLVMTargetMachineRef T,
|
||||||
LLVMBool VerboseAsm) {
|
LLVMBool VerboseAsm) {
|
||||||
unwrap(T)->setAsmVerbosityDefault(VerboseAsm);
|
unwrap(T)->Options.MCOptions.AsmVerbose = VerboseAsm;
|
||||||
}
|
}
|
||||||
|
|
||||||
static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
|
static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M,
|
||||||
|
|
Loading…
Reference in New Issue