llvm.org GIT mirror llvm / d66d571
runtime/libprofile/PathProfiling.c: Use __inline__ to appease clang -std=gnu89 -pedantic. FIXME: Should configure detect one? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144070 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2727
2828 /* Must use __inline in Microsoft C */
2929 #if defined(_MSC_VER)
30 #define inline __inline
30 #define __inline__ __inline
3131 #endif
3232
3333 /* note that this is used for functions with large path counts,
111111 }
112112 }
113113
114 static inline uint32_t hash (uint32_t key) {
114 static __inline__ uint32_t hash (uint32_t key) {
115115 /* this may benefit from a proper hash function */
116116 return key%ARBITRARY_HASH_BIN_COUNT;
117117 }
154154 }
155155
156156 /* Return a pointer to this path's specific path counter */
157 static inline uint32_t* getPathCounter(uint32_t functionNumber,
157 static __inline__ uint32_t* getPathCounter(uint32_t functionNumber,
158158 uint32_t pathNumber) {
159159 pathHashTable_t* hashTable;
160160 pathHashEntry_t* hashEntry;