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 | 6a9366c0c633c4518d55685d4f3b289ef99c0bd1 (patch) | |
tree | b8ce64efe64fdbef2477e23c416ae30d734eede8 /lib | |
parent | 95aa960b715315bf99918544211d0639b77c0f3a (diff) | |
download | llvm-6a9366c0c633c4518d55685d4f3b289ef99c0bd1.tar.gz llvm-6a9366c0c633c4518d55685d4f3b289ef99c0bd1.tar.bz2 llvm-6a9366c0c633c4518d55685d4f3b289ef99c0bd1.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/TargetMachine.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index f79cdfd0a7..4ccf519494 100644 --- a/lib/Target/TargetMachine.cpp +++ b/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, |