summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-19 06:22:08 +0000
committerEric Christopher <echristo@gmail.com>2014-06-19 06:22:08 +0000
commit179bb4e0eef028baf4015a12f962964739d3b542 (patch)
treedd0277d3ad6781c720c3357baae30ee8d4d9849b /lib/MC
parent054bd5d288c9e9a480583e017dcea5df6d11af3a (diff)
downloadllvm-179bb4e0eef028baf4015a12f962964739d3b542.tar.gz
llvm-179bb4e0eef028baf4015a12f962964739d3b542.tar.bz2
llvm-179bb4e0eef028baf4015a12f962964739d3b542.tar.xz
Move -dwarf-version to an MC level command line option so it's
used by all of the MC level tools and codegen. Fix up all uses in the compiler to use this and set it on the context accordingly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCTargetOptions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCTargetOptions.cpp b/lib/MC/MCTargetOptions.cpp
index 8e946d57f7..efd724a15d 100644
--- a/lib/MC/MCTargetOptions.cpp
+++ b/lib/MC/MCTargetOptions.cpp
@@ -14,6 +14,7 @@ namespace llvm {
MCTargetOptions::MCTargetOptions()
: SanitizeAddress(false), MCRelaxAll(false), MCNoExecStack(false),
MCSaveTempLabels(false), MCUseDwarfDirectory(false),
- ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false) {}
+ ShowMCEncoding(false), ShowMCInst(false), AsmVerbose(false),
+ DwarfVersion(0) {}
} // end namespace llvm