diff options
author | Vitaly Buka <vitalybuka@google.com> | 2022-09-06 09:46:46 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2022-09-06 09:47:33 -0700 |
commit | c51a12d598e96d213eb16fc857c891e878733349 (patch) | |
tree | fc58e1f1df31cec1d7b7ad12db9e8d844e61af57 /llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | |
parent | 0c7abd3924a6c11f30c9a7e62553d4970f0a5c4d (diff) | |
download | llvm-c51a12d598e96d213eb16fc857c891e878733349.zip llvm-c51a12d598e96d213eb16fc857c891e878733349.tar.gz llvm-c51a12d598e96d213eb16fc857c891e878733349.tar.bz2 |
Revert "[tsan] Replace mem intrinsics with calls to interceptors"
Breaks
http://45.33.8.238/macm1/43944/step_4.txt
https://lab.llvm.org/buildbot/#/builders/70/builds/26926
This reverts commit 77654a65a373da9c4829de821e7b393ea811ee40.
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp index 0cda196..863b085 100644 --- a/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp @@ -341,13 +341,13 @@ void ThreadSanitizer::initialize(Module &M) { } MemmoveFn = - M.getOrInsertFunction("__tsan_memmove", Attr, IRB.getInt8PtrTy(), + M.getOrInsertFunction("memmove", Attr, IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy); MemcpyFn = - M.getOrInsertFunction("__tsan_memcpy", Attr, IRB.getInt8PtrTy(), + M.getOrInsertFunction("memcpy", Attr, IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IntptrTy); MemsetFn = - M.getOrInsertFunction("__tsan_memset", Attr, IRB.getInt8PtrTy(), + M.getOrInsertFunction("memset", Attr, IRB.getInt8PtrTy(), IRB.getInt8PtrTy(), IRB.getInt32Ty(), IntptrTy); } |