summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2011-11-08 03:54:40 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2011-11-08 03:54:40 +0000
commitd66d5718a4c6bf0432175eedc81537dc06cac48a (patch)
tree367020e349306adf5bb40553704c0004bf7643c1 /runtime
parenta422294ab149efc7af887da76379e10996f4b10a (diff)
downloadllvm-d66d5718a4c6bf0432175eedc81537dc06cac48a.tar.gz
llvm-d66d5718a4c6bf0432175eedc81537dc06cac48a.tar.bz2
llvm-d66d5718a4c6bf0432175eedc81537dc06cac48a.tar.xz
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
Diffstat (limited to 'runtime')
-rw-r--r--runtime/libprofile/PathProfiling.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/libprofile/PathProfiling.c b/runtime/libprofile/PathProfiling.c
index 2836785213..b2d2eb7eab 100644
--- a/runtime/libprofile/PathProfiling.c
+++ b/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;