diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-12 21:16:34 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-02-12 21:16:34 +0000 |
| commit | 3105fd83351571e67c0a1008def0e72449f437cb (patch) | |
| tree | 7e65f3cc5ad80128ddadf9484ce5b62179635d84 /llvm/lib | |
| parent | c074de041b92af6a8279ea84a3675ab79579ec20 (diff) | |
| download | bcm5719-llvm-3105fd83351571e67c0a1008def0e72449f437cb.tar.gz bcm5719-llvm-3105fd83351571e67c0a1008def0e72449f437cb.zip | |
Remove mostly unused setters.
Most of the code was setting the TargetOptions directly.
llvm-svn: 228961
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 24 | ||||
| -rw-r--r-- | llvm/lib/Target/TargetMachineC.cpp | 2 |
2 files changed, 1 insertions, 25 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 1bd99eac7dc..7f44e8b93ce 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -148,30 +148,6 @@ void TargetMachine::setOptLevel(CodeGenOpt::Level Level) const { 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() { return TargetIRAnalysis( [this](Function &) { return TargetTransformInfo(getDataLayout()); }); diff --git a/llvm/lib/Target/TargetMachineC.cpp b/llvm/lib/Target/TargetMachineC.cpp index 8be10cb3262..537b47b373d 100644 --- a/llvm/lib/Target/TargetMachineC.cpp +++ b/llvm/lib/Target/TargetMachineC.cpp @@ -179,7 +179,7 @@ LLVMTargetDataRef LLVMGetTargetMachineData(LLVMTargetMachineRef T) { void LLVMSetTargetMachineAsmVerbosity(LLVMTargetMachineRef T, LLVMBool VerboseAsm) { - unwrap(T)->setAsmVerbosityDefault(VerboseAsm); + unwrap(T)->Options.MCOptions.AsmVerbose = VerboseAsm; } static LLVMBool LLVMTargetMachineEmit(LLVMTargetMachineRef T, LLVMModuleRef M, |

