[ubsan] Add -fsanitize-undefined-strip-path-components=N
Summary: 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. Reviewers: rsmith Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D19666 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269309 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/UndefinedBehaviorSanitizer.rst 20 additions, 0 deletionsdocs/UndefinedBehaviorSanitizer.rst
- include/clang/Driver/Options.td 4 additions, 0 deletionsinclude/clang/Driver/Options.td
- include/clang/Frontend/CodeGenOptions.def 4 additions, 0 deletionsinclude/clang/Frontend/CodeGenOptions.def
- lib/CodeGen/CGExpr.cpp 28 additions, 1 deletionlib/CodeGen/CGExpr.cpp
- lib/Driver/Tools.cpp 4 additions, 0 deletionslib/Driver/Tools.cpp
- lib/Frontend/CompilerInvocation.cpp 3 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- test/CodeGen/ubsan-strip-path-components.cpp 29 additions, 0 deletionstest/CodeGen/ubsan-strip-path-components.cpp
- test/Driver/fubsan-strip-path-components.cpp 2 additions, 0 deletionstest/Driver/fubsan-strip-path-components.cpp
Loading
Please register or sign in to comment