diff options
author | Xinliang David Li <davidxl@google.com> | 2015-11-20 18:31:45 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2015-11-20 18:31:45 +0000 |
commit | b83ab8508eae53d3ab1a0c5ba9ba26eeaabf7437 (patch) | |
tree | 9bd4f45b103bbd8600e9cc6e2a38a053b6e3011c | |
parent | f735b8d10e4711f3b44e0d5b778feff9ca9f8564 (diff) | |
download | bcm5719-llvm-b83ab8508eae53d3ab1a0c5ba9ba26eeaabf7437.tar.gz bcm5719-llvm-b83ab8508eae53d3ab1a0c5ba9ba26eeaabf7437.zip |
Speculatively fix MIPS build bot failures
MIPS build bots failed due to lack of 64bit atomic operations.
The fix is to disable VP for MIPS target until a better solution
is found.
llvm-svn: 253687
-rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c index 0ea03c23d11..bf05d603e4a 100644 --- a/compiler-rt/lib/profile/InstrProfiling.c +++ b/compiler-rt/lib/profile/InstrProfiling.c @@ -74,6 +74,14 @@ __attribute__((visibility("hidden"))) void __llvm_profile_reset_counters(void) { /* Total number of value profile data in bytes. */ static uint64_t TotalValueDataSize = 0; +#ifdef _MIPS_ARCH +__attribute__((visibility("hidden"))) void +__llvm_profile_instrument_target(uint64_t TargetValue, void *Data_, + uint32_t CounterIndex) { +} + +#else + /* Allocate an array that holds the pointers to the linked lists of * value profile counter nodes. The number of element of the array * is the total number of value profile sites instrumented. Returns @@ -156,6 +164,7 @@ __llvm_profile_instrument_target(uint64_t TargetValue, void *Data_, __sync_fetch_and_add(&TotalValueDataSize, Success * sizeof(__llvm_profile_value_data)); } +#endif __attribute__((visibility("hidden"))) uint64_t __llvm_profile_gather_value_data(uint8_t **VDataArray) { |