[PATCH] D55832: [clang] [Driver] Add .hasAnySanitizer() to SanitizerArgs

Michał Górny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 19 09:29:46 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349649: [Driver] Add .hasAnySanitizer() to SanitizerArgs (authored by mgorny, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D55832?vs=178699&id=178901#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55832/new/

https://reviews.llvm.org/D55832

Files:
  cfe/trunk/include/clang/Driver/SanitizerArgs.h


Index: cfe/trunk/include/clang/Driver/SanitizerArgs.h
===================================================================
--- cfe/trunk/include/clang/Driver/SanitizerArgs.h
+++ cfe/trunk/include/clang/Driver/SanitizerArgs.h
@@ -82,6 +82,7 @@
   bool needsUnwindTables() const;
   bool linkCXXRuntimes() const { return LinkCXXRuntimes; }
   bool hasCrossDsoCfi() const { return CfiCrossDso; }
+  bool hasAnySanitizer() const { return !Sanitizers.empty(); }
   void addArgs(const ToolChain &TC, const llvm::opt::ArgList &Args,
                llvm::opt::ArgStringList &CmdArgs, types::ID InputType) const;
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55832.178901.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181219/78511851/attachment.bin>


More information about the llvm-commits mailing list