Add ability to emit internal instruction representation to CodeGen assembly output.
[oota-llvm.git] / include / llvm / MC / MCTargetOptionsCommandFlags.h
index 344983dec5f279bc3fac81f03b6d12ab35f4a3e3..6d4eb0ef591174e29ab8b23bab059134aa8cfc87 100644 (file)
@@ -36,12 +36,17 @@ cl::opt<bool> RelaxAll("mc-relax-all",
 cl::opt<int> DwarfVersion("dwarf-version", cl::desc("Dwarf version"),
                           cl::init(0));
 
+cl::opt<bool> ShowMCInst("asm-show-inst",
+                         cl::desc("Emit internal instruction representation to "
+                                  "assembly file"));
+
 static inline MCTargetOptions InitMCTargetOptionsFromFlags() {
   MCTargetOptions Options;
   Options.SanitizeAddress =
       (AsmInstrumentation == MCTargetOptions::AsmInstrumentationAddress);
   Options.MCRelaxAll = RelaxAll;
   Options.DwarfVersion = DwarfVersion;
+  Options.ShowMCInst = ShowMCInst;
   return Options;
 }