OSDN Git Service

Remove TimeValue usage from llvm/Support
authorPavel Labath <labath@google.com>
Mon, 24 Oct 2016 10:59:17 +0000 (10:59 +0000)
committerPavel Labath <labath@google.com>
Mon, 24 Oct 2016 10:59:17 +0000 (10:59 +0000)
commit2864c2ae9036b57ac200a74db5be6ae1a4da6e3d
tree0fc5075fdc40342d51567606afdb9d254297bd76
parent7577cb98e63eaed695d9c46b21ec07988cc2b18b
Remove TimeValue usage from llvm/Support

Summary:
This is a follow-up to D25416. It removes all usages of TimeValue from
llvm/Support library (except for the actual TimeValue declaration), and replaces
them with appropriate usages of std::chrono. To facilitate this, I have added
small utility functions for converting time points and durations into appropriate
OS-specific types (FILETIME, struct timespec, ...).

Reviewers: zturner, mehdi_amini

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D25730

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284966 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/llvm/Object/Archive.h
include/llvm/Support/CachePruning.h
include/llvm/Support/FileSystem.h
include/llvm/Support/Process.h
lib/LTO/ThinLTOCodeGenerator.cpp
lib/Support/CachePruning.cpp
lib/Support/Timer.cpp
lib/Support/Unix/Path.inc
lib/Support/Unix/Process.inc
lib/Support/Unix/Unix.h
lib/Support/Windows/Path.inc
lib/Support/Windows/Process.inc
lib/Support/Windows/WindowsSupport.h
tools/llvm-ar/llvm-ar.cpp
tools/llvm-cov/CodeCoverage.cpp