diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-12 14:34:17 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-12 14:34:17 +0000 |
commit | 0d069ae3f9136a81fdeca4e647e46aa36364be5e (patch) | |
tree | dbdab41e2694420756e54531debef39075521440 /test/tsan/global_race.cc | |
parent | e4007fc15900f08ba056c8ae4534fe8e8dde14eb (diff) |
[tsan] Allow symbolizers that don't obtain global symbol sizes
The default symbolizer, `llvm-symbolizer` provides sizes for global symbols. On OS X, we want to also allow using `atos` (because it's available everywhere and users don't need to copy/install it) and `dladdr` (it's the only available option when running in a sandbox). However, these symbolizers do not supply the symbol sizes, only names and starting addresses. This patch changes the reporting functions to hide the size of the symbol when this value is unavailable, and modifies tests to make this part of the report "optional".
Differential Revision: http://reviews.llvm.org/D14608
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@252896 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan/global_race.cc')
-rw-r--r-- | test/tsan/global_race.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tsan/global_race.cc b/test/tsan/global_race.cc index 3128ec411..d1f0e3859 100644 --- a/test/tsan/global_race.cc +++ b/test/tsan/global_race.cc @@ -23,5 +23,5 @@ int main() { // CHECK: addr=[[ADDR:0x[0-9,a-f]+]] // CHECK: WARNING: ThreadSanitizer: data race -// CHECK: Location is global 'GlobalData' of size 40 at [[ADDR]] (global_race.cc.exe+0x{{[0-9,a-f]+}}) +// CHECK: Location is global 'GlobalData' {{(of size 40 )?}}at [[ADDR]] (global_race.cc.exe+0x{{[0-9,a-f]+}}) |