tsan: merge function definition and declaration

llvm-svn: 240633
This commit is contained in:
Dmitry Vyukov 2015-06-25 11:45:45 +00:00
parent 7811d6a409
commit b89a69dac6
1 changed files with 4 additions and 10 deletions

View File

@ -38,16 +38,10 @@ void ExitSymbolizer() {
// May be overriden by JIT/JAVA/etc,
// whatever produces PCs marked with kExternalPCBit.
extern "C" bool __tsan_symbolize_external(uptr pc,
char *func_buf, uptr func_siz,
char *file_buf, uptr file_siz,
int *line, int *col)
SANITIZER_WEAK_ATTRIBUTE;
bool WEAK __tsan_symbolize_external(uptr pc,
char *func_buf, uptr func_siz,
char *file_buf, uptr file_siz,
int *line, int *col) {
extern "C" bool WEAK __tsan_symbolize_external(uptr pc,
char *func_buf, uptr func_siz,
char *file_buf, uptr file_siz,
int *line, int *col) {
return false;
}