Move -dwarf-version to an MC level command line option so it's
[oota-llvm.git] / include / llvm / MC / MCTargetOptionsCommandFlags.h
index 17a117a2a3bd11bc0a4ce0a62996ded53e89cd2f..344983dec5f279bc3fac81f03b6d12ab35f4a3e3 100644 (file)
@@ -33,11 +33,15 @@ cl::opt<bool> RelaxAll("mc-relax-all",
                        cl::desc("When used with filetype=obj, "
                                 "relax all fixups in the emitted object file"));
 
+cl::opt<int> DwarfVersion("dwarf-version", cl::desc("Dwarf version"),
+                          cl::init(0));
+
 static inline MCTargetOptions InitMCTargetOptionsFromFlags() {
   MCTargetOptions Options;
   Options.SanitizeAddress =
       (AsmInstrumentation == MCTargetOptions::AsmInstrumentationAddress);
   Options.MCRelaxAll = RelaxAll;
+  Options.DwarfVersion = DwarfVersion;
   return Options;
 }