mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
runtime/libprofile/PathProfiling.c: Use __inline__ to appease clang -std=gnu89 -pedantic.
FIXME: Should configure detect one? llvm-svn: 144070
This commit is contained in:
parent
e7c7964113
commit
e30a3a9d85
@ -28,7 +28,7 @@
|
||||
|
||||
/* Must use __inline in Microsoft C */
|
||||
#if defined(_MSC_VER)
|
||||
#define inline __inline
|
||||
#define __inline__ __inline
|
||||
#endif
|
||||
|
||||
/* note that this is used for functions with large path counts,
|
||||
@ -112,7 +112,7 @@ void writeArrayTable(uint32_t fNumber, ftEntry_t* ft, uint32_t* funcCount) {
|
||||
}
|
||||
}
|
||||
|
||||
static inline uint32_t hash (uint32_t key) {
|
||||
static __inline__ uint32_t hash (uint32_t key) {
|
||||
/* this may benefit from a proper hash function */
|
||||
return key%ARBITRARY_HASH_BIN_COUNT;
|
||||
}
|
||||
@ -155,7 +155,7 @@ void writeHashTable(uint32_t functionNumber, pathHashTable_t* hashTable) {
|
||||
}
|
||||
|
||||
/* Return a pointer to this path's specific path counter */
|
||||
static inline uint32_t* getPathCounter(uint32_t functionNumber,
|
||||
static __inline__ uint32_t* getPathCounter(uint32_t functionNumber,
|
||||
uint32_t pathNumber) {
|
||||
pathHashTable_t* hashTable;
|
||||
pathHashEntry_t* hashEntry;
|
||||
|
Loading…
x
Reference in New Issue
Block a user