summaryrefslogtreecommitdiff
path: root/lib/esan
diff options
context:
space:
mode:
authorSagar Thakur <sagar.thakur@imgtec.com>2016-09-22 08:36:54 +0000
committerSagar Thakur <sagar.thakur@imgtec.com>2016-09-22 08:36:54 +0000
commit5042ecdfcbc09e87491222df05507dff67ad07ae (patch)
treefbce536514f66c2163a4c968bb12e530a3487ef5 /lib/esan
parent371ddbf8f454af7f6e7b989007c88bae477ab5cf (diff)
[ESan][MIPS] Fix tests struct-simple.cpp on MIPS
For mips assember '#' is the start of comment. We get assembler error messages if # is used in the struct names. Therefore using '$' which works for all architectures. Differential: D24335 Reviewed by: zhaoqin git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@282142 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/esan')
-rw-r--r--lib/esan/cache_frag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/esan/cache_frag.cpp b/lib/esan/cache_frag.cpp
index a3e612dac..5fa5c7d54 100644
--- a/lib/esan/cache_frag.cpp
+++ b/lib/esan/cache_frag.cpp
@@ -94,8 +94,8 @@ static void reportStructCounter(StructHashMap::Handle &Handle) {
type = "struct";
start = &Struct->StructName[7];
}
- // Remove the suffixes with '#' during print.
- end = strchr(start, '#');
+ // Remove the suffixes with '$' during print.
+ end = strchr(start, '$');
CHECK(end != nullptr);
Report(" %s %.*s\n", type, end - start, start);
Report(" size = %u, count = %llu, ratio = %llu, array access = %llu\n",