[compiler-rt] ed4fbe6 - [CMake] Replace ctime with time.h in memprof
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 30 20:04:18 PDT 2020
Author: Petr Hosek
Date: 2020-10-30T20:02:53-07:00
New Revision: ed4fbe6d9cfd25c1783eccf28f1b475b3a8ee390
URL: https://github.com/llvm/llvm-project/commit/ed4fbe6d9cfd25c1783eccf28f1b475b3a8ee390
DIFF: https://github.com/llvm/llvm-project/commit/ed4fbe6d9cfd25c1783eccf28f1b475b3a8ee390.diff
LOG: [CMake] Replace ctime with time.h in memprof
Part of D88922
Added:
Modified:
compiler-rt/lib/memprof/memprof_allocator.cpp
compiler-rt/lib/memprof/memprof_rtl.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/memprof/memprof_allocator.cpp b/compiler-rt/lib/memprof/memprof_allocator.cpp
index f13fde02c135..c6a68118f7de 100644
--- a/compiler-rt/lib/memprof/memprof_allocator.cpp
+++ b/compiler-rt/lib/memprof/memprof_allocator.cpp
@@ -27,9 +27,9 @@
#include "sanitizer_common/sanitizer_list.h"
#include "sanitizer_common/sanitizer_stackdepot.h"
-#include <ctime>
#include <sched.h>
#include <stdlib.h>
+#include <time.h>
namespace __memprof {
diff --git a/compiler-rt/lib/memprof/memprof_rtl.cpp b/compiler-rt/lib/memprof/memprof_rtl.cpp
index 93264dd562d0..8e1335aea875 100644
--- a/compiler-rt/lib/memprof/memprof_rtl.cpp
+++ b/compiler-rt/lib/memprof/memprof_rtl.cpp
@@ -23,7 +23,8 @@
#include "sanitizer_common/sanitizer_flags.h"
#include "sanitizer_common/sanitizer_libc.h"
#include "sanitizer_common/sanitizer_symbolizer.h"
-#include <ctime>
+
+#include <time.h>
uptr __memprof_shadow_memory_dynamic_address; // Global interface symbol.
More information about the llvm-commits
mailing list