Skip to content

Commit

Permalink
[Flang] Exclude the reference to TIME_UTC for AIX. (llvm#99069)
Browse files Browse the repository at this point in the history
This PR supersede PR llvm#98915
  • Loading branch information
DanielCChen authored and sgundapa committed Jul 23, 2024
1 parent bff7d23 commit 8a28b56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flang/runtime/time-intrinsic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ count_t ConvertTimeSpecToCount(int kind, const struct timespec &tspec) {
}
}

#ifndef _AIX
// This is the fallback implementation, which should work everywhere.
template <typename Unused = void>
count_t GetSystemClockCount(int kind, fallback_implementation) {
Expand All @@ -153,6 +154,7 @@ count_t GetSystemClockCount(int kind, fallback_implementation) {
// with the requested kind at the call site.
return ConvertTimeSpecToCount(kind, tspec);
}
#endif

template <typename Unused = void>
count_t GetSystemClockCountRate(int kind, fallback_implementation) {
Expand Down

0 comments on commit 8a28b56

Please sign in to comment.