diff options
author | Eric Christopher <echristo@gmail.com> | 2014-05-20 23:59:50 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2014-05-20 23:59:50 +0000 |
commit | eb719728877b4f32534816fcacda4b4ee45b0d83 (patch) | |
tree | a8b3327fbf4feb679578705e1763c47f110bba44 /llvm/lib/Target/TargetMachine.cpp | |
parent | 5719614b775c26fe2e249d9abacaf1f1ed126dd8 (diff) | |
download | llvm-eb719728877b4f32534816fcacda4b4ee45b0d83.zip llvm-eb719728877b4f32534816fcacda4b4ee45b0d83.tar.gz llvm-eb719728877b4f32534816fcacda4b4ee45b0d83.tar.bz2 |
Move the verbose asm option to be part of the options struct and
set appropriately.
llvm-svn: 209258
Diffstat (limited to 'llvm/lib/Target/TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/TargetMachine.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/llvm/lib/Target/TargetMachine.cpp b/llvm/lib/Target/TargetMachine.cpp index 4ccf519..dbd433d 100644 --- a/llvm/lib/Target/TargetMachine.cpp +++ b/llvm/lib/Target/TargetMachine.cpp @@ -29,14 +29,6 @@ using namespace llvm; //--------------------------------------------------------------------------- -// Command-line options that tend to be useful on more than one back-end. -// - -namespace llvm { - bool AsmVerbosityDefault(false); -} - -//--------------------------------------------------------------------------- // TargetMachine Class // @@ -162,12 +154,12 @@ void TargetMachine::setOptLevel(CodeGenOpt::Level Level) const { CodeGenInfo->setOptLevel(Level); } -bool TargetMachine::getAsmVerbosityDefault() { - return AsmVerbosityDefault; +bool TargetMachine::getAsmVerbosityDefault() const { + return Options.MCOptions.AsmVerbose; } void TargetMachine::setAsmVerbosityDefault(bool V) { - AsmVerbosityDefault = V; + Options.MCOptions.AsmVerbose = V; } bool TargetMachine::getFunctionSections() const { |