[compiler-rt] d871456 - [Profile] Remove inline for hasCorrelation.

Zequan Wu via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 1 12:50:22 PDT 2023


Author: Zequan Wu
Date: 2023-11-01T15:48:50-04:00
New Revision: d8714566592159c37960e626d831bfca4e24baa3

URL: https://github.com/llvm/llvm-project/commit/d8714566592159c37960e626d831bfca4e24baa3
DIFF: https://github.com/llvm/llvm-project/commit/d8714566592159c37960e626d831bfca4e24baa3.diff

LOG: [Profile] Remove inline for hasCorrelation.

Added: 
    

Modified: 
    compiler-rt/lib/profile/InstrProfiling.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/InstrProfiling.c b/compiler-rt/lib/profile/InstrProfiling.c
index 7d69e37815c948f..3285af4bf01f3c1 100644
--- a/compiler-rt/lib/profile/InstrProfiling.c
+++ b/compiler-rt/lib/profile/InstrProfiling.c
@@ -90,6 +90,6 @@ COMPILER_RT_VISIBILITY void __llvm_profile_reset_counters(void) {
   lprofSetProfileDumped(0);
 }
 
-inline int hasCorrelation() {
+int hasCorrelation() {
   return (__llvm_profile_get_version() & VARIANT_MASK_DBG_CORRELATE) != 0ULL;
 }


        


More information about the llvm-commits mailing list