diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-08 03:54:40 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-08 03:54:40 +0000 |
commit | bb8a523c62b416c60efdeb19cf1235819a6db358 (patch) | |
tree | a34d12ee04a4b226a7cc42ee01e76ac3695d1d74 /llvm/runtime/libprofile/PathProfiling.c | |
parent | e519824641e2d42f2387c18a6de957dc6b2910d7 (diff) | |
download | bcm5719-llvm-bb8a523c62b416c60efdeb19cf1235819a6db358.tar.gz bcm5719-llvm-bb8a523c62b416c60efdeb19cf1235819a6db358.zip |
runtime/libprofile/PathProfiling.c: Use __inline__ to appease clang -std=gnu89 -pedantic.
FIXME: Should configure detect one?
llvm-svn: 144070
Diffstat (limited to 'llvm/runtime/libprofile/PathProfiling.c')
-rw-r--r-- | llvm/runtime/libprofile/PathProfiling.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/runtime/libprofile/PathProfiling.c b/llvm/runtime/libprofile/PathProfiling.c index 28367852138..b2d2eb7eab7 100644 --- a/llvm/runtime/libprofile/PathProfiling.c +++ b/llvm/runtime/libprofile/PathProfiling.c @@ -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; |