[PATCH] D18813: Update visibility settings for CFI tests.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 10:14:56 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL267902: Update visibility flags for CFI tests. (authored by pcc).
Changed prior to commit:
http://reviews.llvm.org/D18813?vs=53333&id=55437#toc
Repository:
rL LLVM
http://reviews.llvm.org/D18813
Files:
compiler-rt/trunk/test/cfi/lit.cfg
Index: compiler-rt/trunk/test/cfi/lit.cfg
===================================================================
--- compiler-rt/trunk/test/cfi/lit.cfg
+++ compiler-rt/trunk/test/cfi/lit.cfg
@@ -11,16 +11,16 @@
config.substitutions.append((r"%clangxx ", clangxx + ' '))
if config.lto_supported:
clang_cfi = ' '.join(config.lto_launch + [config.clang] + config.lto_flags + ['-flto -fsanitize=cfi '])
- clangxx_cfi = clang_cfi + ' '.join(config.cxx_mode_flags) + ' '
- diag_flags = '-fno-sanitize-trap=cfi -fsanitize-recover=cfi '
- clang_cfi_diag = clang_cfi + diag_flags
- clangxx_cfi_diag = clangxx_cfi + diag_flags
- config.substitutions.append((r"%clang_cfi ", clang_cfi))
- config.substitutions.append((r"%clangxx_cfi ", clangxx_cfi))
- config.substitutions.append((r"%clang_cfi_diag ", clang_cfi_diag))
- config.substitutions.append((r"%clangxx_cfi_diag ", clangxx_cfi_diag))
- config.substitutions.append((r"%clangxx_cfi_dso ", clangxx_cfi + '-fsanitize-cfi-cross-dso '))
- config.substitutions.append((r"%clangxx_cfi_dso_diag ", clangxx_cfi_diag + '-fsanitize-cfi-cross-dso '))
+ cxx = ' '.join(config.cxx_mode_flags) + ' '
+ diag = '-fno-sanitize-trap=cfi -fsanitize-recover=cfi '
+ non_dso = '-fvisibility=hidden '
+ dso = '-fsanitize-cfi-cross-dso -fvisibility=default '
+ config.substitutions.append((r"%clang_cfi ", clang_cfi + non_dso))
+ config.substitutions.append((r"%clangxx_cfi ", clang_cfi + cxx + non_dso))
+ config.substitutions.append((r"%clang_cfi_diag ", clang_cfi + non_dso + diag))
+ config.substitutions.append((r"%clangxx_cfi_diag ", clang_cfi + cxx + non_dso + diag))
+ config.substitutions.append((r"%clangxx_cfi_dso ", clang_cfi + cxx + dso))
+ config.substitutions.append((r"%clangxx_cfi_dso_diag ", clang_cfi + cxx + dso + diag))
else:
config.unsupported = True
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18813.55437.patch
Type: text/x-patch
Size: 1823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160428/b6f62d8e/attachment.bin>
More information about the llvm-commits
mailing list