summaryrefslogtreecommitdiff
path: root/lib/Target/TargetMachine.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-05-20 23:59:50 +0000
committerEric Christopher <echristo@gmail.com>2014-05-20 23:59:50 +0000
commit4f6d26dbe89d51362b665fe8fb0f206434e52471 (patch)
tree5a8a56dc301ac59d51362fd454b8a03f81fbfba8 /lib/Target/TargetMachine.cpp
parentb38059ab25cdabc9bcf4819cd82ab5955e8d3e3e (diff)
downloadllvm-4f6d26dbe89d51362b665fe8fb0f206434e52471.tar.gz
llvm-4f6d26dbe89d51362b665fe8fb0f206434e52471.tar.bz2
llvm-4f6d26dbe89d51362b665fe8fb0f206434e52471.tar.xz
Move the verbose asm option to be part of the options struct and
set appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209258 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetMachine.cpp')
-rw-r--r--lib/Target/TargetMachine.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp
index 4ccf519494..dbd433d524 100644
--- a/lib/Target/TargetMachine.cpp
+++ b/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 {