Simplify the handling of .cfi_endproc.
[oota-llvm.git] / include / llvm / MC / MCTargetOptionsCommandFlags.h
index 0dddc2fdfb15cb5f7e31b4a875cd66f179fdaaa5..344983dec5f279bc3fac81f03b6d12ab35f4a3e3 100644 (file)
@@ -33,24 +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<bool> EnableDwarfDirectory(
-    "enable-dwarf-directory", cl::Hidden,
-    cl::desc("Use .file directives with an explicit directory."));
-
-cl::opt<bool> NoExecStack("mc-no-exec-stack",
-                          cl::desc("File doesn't need an exec stack"));
-
-static cl::opt<bool>
-SaveTempLabels("L", cl::desc("Don't discard temporary labels"));
+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.MCUseDwarfDirectory = EnableDwarfDirectory;
-  Options.MCNoExecStack = NoExecStack;
-  Options.MCSaveTempLabels = SaveTempLabels;
+  Options.DwarfVersion = DwarfVersion;
   return Options;
 }