[compiler-rt] 1cb8cc1 - [profile] Enabled test on windows

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 00:06:01 PDT 2020


Author: Vitaly Buka
Date: 2020-07-17T00:05:46-07:00
New Revision: 1cb8cc1fd1b9b8191a101008d9fdf5cc5992a929

URL: https://github.com/llvm/llvm-project/commit/1cb8cc1fd1b9b8191a101008d9fdf5cc5992a929
DIFF: https://github.com/llvm/llvm-project/commit/1cb8cc1fd1b9b8191a101008d9fdf5cc5992a929.diff

LOG: [profile] Enabled test on windows

Works with D34797

Added: 
    

Modified: 
    compiler-rt/lib/sanitizer_common/sanitizer_common.h
    compiler-rt/test/profile/instrprof-version-mismatch.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
index bf6ca735fb0d..df9088b6929a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
@@ -109,7 +109,7 @@ void *MmapFixedOrDie(uptr fixed_addr, uptr size, const char *name = nullptr);
 void *MmapFixedOrDieOnFatalError(uptr fixed_addr, uptr size,
                                  const char *name = nullptr);
 void *MmapFixedNoAccess(uptr fixed_addr, uptr size, const char *name = nullptr);
-void *MmapNoAccess(uptr size);
+void *MmapNoAccess(uptr size, const char *name = nullptr);
 // Map aligned chunk of address space; size and alignment are powers of two.
 // Dies on all but out of memory errors, in the latter case returns nullptr.
 void *MmapAlignedOrDieOnFatalError(uptr size, uptr alignment,

diff  --git a/compiler-rt/test/profile/instrprof-version-mismatch.c b/compiler-rt/test/profile/instrprof-version-mismatch.c
index c63b299c76d7..81ae52119693 100644
--- a/compiler-rt/test/profile/instrprof-version-mismatch.c
+++ b/compiler-rt/test/profile/instrprof-version-mismatch.c
@@ -1,9 +1,6 @@
 // RUN: %clang_profgen -o %t -O3 %s
 // RUN: %run %t 1 2>&1 | FileCheck %s
 
-// FIXME: Weak symbols are once again a portability problem for Windows.
-// XFAIL: windows
-
 // override the version variable with a bogus version:
 unsigned long long __llvm_profile_raw_version = 10000;
 int main(int argc, const char *argv[]) {


        


More information about the llvm-commits mailing list