diff options
author | Pavel Labath <labath@google.com> | 2016-11-09 12:07:12 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-11-09 12:07:12 +0000 |
commit | c207bec388e36229cb25865c0e8326b80736e823 (patch) | |
tree | 74e958a1ecc479754db65dce6b78659b02c1a180 /llvm/lib | |
parent | 1875087ce664d3f3438084dc2d899e552c1e6176 (diff) | |
download | bcm5719-llvm-c207bec388e36229cb25865c0e8326b80736e823.tar.gz bcm5719-llvm-c207bec388e36229cb25865c0e8326b80736e823.zip |
Remove TimeValue usage from Scalar/SROA.cpp. NFC.
llvm-svn: 286361
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SROA.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index c834df6c73c..19078669110 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -44,12 +44,12 @@ #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Operator.h" #include "llvm/Pass.h" +#include "llvm/Support/Chrono.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MathExtras.h" -#include "llvm/Support/TimeValue.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Utils/Local.h" @@ -1000,7 +1000,8 @@ AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) #ifndef NDEBUG if (SROARandomShuffleSlices) { - std::mt19937 MT(static_cast<unsigned>(sys::TimeValue::now().msec())); + std::mt19937 MT(static_cast<unsigned>( + std::chrono::system_clock::now().time_since_epoch().count())); std::shuffle(Slices.begin(), Slices.end(), MT); } #endif |