[PATCH] D19666: [ubsan] Add -fubsan-strip-path-components=N
Filipe Cabecinhas via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 28 09:30:30 PDT 2016
filcab created this revision.
filcab added a reviewer: rsmith.
filcab added a subscriber: cfe-commits.
This option allows the user to control how much of the file name is
emitted by UBSan. Tuning this option allows one to save space in the
resulting binary, which is helpful for restricted execution
environments.
With a positive N, UBSan skips the first N path components.
With a negative N, UBSan only keeps the last N path components.
http://reviews.llvm.org/D19666
Files:
docs/UndefinedBehaviorSanitizer.rst
include/clang/Driver/Options.td
include/clang/Frontend/CodeGenOptions.def
lib/CodeGen/CGExpr.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/ubsan-strip-path-components.cpp
test/Driver/fubsan-strip-path-components.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19666.55427.patch
Type: text/x-patch
Size: 8568 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160428/5ca8d2d3/attachment.bin>
More information about the cfe-commits
mailing list