From 18729a48b8a5d3d9a414ed97a08a500f7da3b415 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Tue, 22 Jan 2019 22:49:19 +0000 Subject: [PATCH] [Chrono] Remove ATTRIBUTE_ALWAYS inline from Chrono.h. I discussed this with Pavel, who told me there was no real thought behind this, and had no objection to remove the attributes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351893 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Chrono.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Support/Chrono.h b/include/llvm/Support/Chrono.h index 809037a03a8..334ab60835a 100644 --- a/include/llvm/Support/Chrono.h +++ b/include/llvm/Support/Chrono.h @@ -33,21 +33,21 @@ template using TimePoint = std::chrono::time_point; /// Convert a TimePoint to std::time_t -LLVM_ATTRIBUTE_ALWAYS_INLINE inline std::time_t toTimeT(TimePoint<> TP) { +inline std::time_t toTimeT(TimePoint<> TP) { using namespace std::chrono; return system_clock::to_time_t( time_point_cast(TP)); } /// Convert a std::time_t to a TimePoint -LLVM_ATTRIBUTE_ALWAYS_INLINE inline TimePoint +inline TimePoint toTimePoint(std::time_t T) { using namespace std::chrono; return time_point_cast(system_clock::from_time_t(T)); } /// Convert a std::time_t + nanoseconds to a TimePoint -LLVM_ATTRIBUTE_ALWAYS_INLINE inline TimePoint<> +inline TimePoint<> toTimePoint(std::time_t T, uint32_t nsec) { using namespace std::chrono; return time_point_cast(system_clock::from_time_t(T)) -- 2.50.1