Skip to content

Commit

Permalink
runtime/libprofile/PathProfiling.c: Use __inline__ to appease clang -…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
chapuni committed Nov 8, 2011
1 parent a422294 commit d66d571
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/libprofile/PathProfiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d66d571

Please sign in to comment.