[PATCH] D11903: [UBSan] Enable 'help' option output, report unrecognized flags

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 13:34:44 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL244946: [UBSan] Enable 'help' option output, report unrecognized flags (authored by samsonov).

Changed prior to commit:
  http://reviews.llvm.org/D11903?vs=31661&id=32090#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D11903

Files:
  compiler-rt/trunk/lib/ubsan/ubsan_flags.cc

Index: compiler-rt/trunk/lib/ubsan/ubsan_flags.cc
===================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_flags.cc
+++ compiler-rt/trunk/lib/ubsan/ubsan_flags.cc
@@ -60,6 +60,9 @@
   // Override from environment variable.
   parser.ParseString(GetEnv("UBSAN_OPTIONS"));
   SetVerbosity(common_flags()->verbosity);
+  if (Verbosity()) ReportUnrecognizedFlags();
+
+  if (common_flags()->help) parser.PrintFlagDescriptions();
 }
 
 }  // namespace __ubsan


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11903.32090.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150813/cdc21cb7/attachment.bin>


More information about the llvm-commits mailing list