Revert "Simplify the creation of .eh_frame/.debug_frame sections."
[oota-llvm.git] / include / llvm / MC / MCTargetOptionsCommandFlags.h
index 1c08d1722f024b5f448dae2680e174370a80c92c..1240e135ea0a146509771ee0e5fed07a04c3eda5 100644 (file)
@@ -43,6 +43,9 @@ cl::opt<bool> ShowMCInst("asm-show-inst",
 cl::opt<bool> FatalWarnings("fatal-warnings",
                             cl::desc("Treat warnings as errors"));
 
+cl::opt<bool> NoWarn("no-warn", cl::desc("Suppress all warnings"));
+cl::alias NoWarnW("W", cl::desc("Alias for --no-warn"), cl::aliasopt(NoWarn));
+
 cl::opt<std::string>
 ABIName("target-abi", cl::Hidden,
         cl::desc("The name of the ABI to be targeted from the backend."),
@@ -57,6 +60,7 @@ static inline MCTargetOptions InitMCTargetOptionsFromFlags() {
   Options.ShowMCInst = ShowMCInst;
   Options.ABIName = ABIName;
   Options.MCFatalWarnings = FatalWarnings;
+  Options.MCNoWarn = NoWarn;
   return Options;
 }