diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-20 21:25:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-20 21:25:34 +0000 |
commit | 2feed5fd6869ccb6a0fc9b034372917f2ba36ad4 (patch) | |
tree | ceaa0228c9533363db33bb35b92d1c03b4d8c1d2 /llvm/lib/Target/TargetMachine.cpp | |
parent | 64976a2a238cb59b688165737ec524a0d89cafc0 (diff) | |
download | bcm5719-llvm-2feed5fd6869ccb6a0fc9b034372917f2ba36ad4.tar.gz bcm5719-llvm-2feed5fd6869ccb6a0fc9b034372917f2ba36ad4.zip |
Move the function and data section flags into the options struct and
make the functions to set them non-static.
Move and rename the llvm specific backend options to avoid conflicting
with the clang option.
Paired with a backend commit to update.
llvm-svn: 209238
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index f79cdfd0a79..4ccf5194947 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -36,15 +36,6 @@ namespace llvm { bool AsmVerbosityDefault(false); } -static cl::opt<bool> -DataSections("fdata-sections", - cl::desc("Emit data into separate sections"), - cl::init(false)); -static cl::opt<bool> -FunctionSections("ffunction-sections", - cl::desc("Emit functions into separate sections"), - cl::init(false)); - //--------------------------------------------------------------------------- // TargetMachine Class // @@ -179,20 +170,20 @@ void TargetMachine::setAsmVerbosityDefault(bool V) { AsmVerbosityDefault = V; } -bool TargetMachine::getFunctionSections() { - return FunctionSections; +bool TargetMachine::getFunctionSections() const { + return Options.FunctionSections; } -bool TargetMachine::getDataSections() { - return DataSections; +bool TargetMachine::getDataSections() const { + return Options.DataSections; } void TargetMachine::setFunctionSections(bool V) { - FunctionSections = V; + Options.FunctionSections = V; } void TargetMachine::setDataSections(bool V) { - DataSections = V; + Options.DataSections = V; } void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name, |