diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-11-08 12:03:14 +0000 |
|---|---|---|
| committer | Stephen Hines <srhines@google.com> | 2011-11-14 09:12:00 -0800 |
| commit | e4b800b5a2b91b1ba008aba6af93cebea9e18676 (patch) | |
| tree | d97e67e41bf192f434bac89df7e9e7e443f27e6d /runtime/libprofile/PathProfiling.c | |
| parent | 30e9021dd3f741f0568d7b62a231c62ce4d3f5db (diff) | |
| download | external_llvm-e4b800b5a2b91b1ba008aba6af93cebea9e18676.zip external_llvm-e4b800b5a2b91b1ba008aba6af93cebea9e18676.tar.gz external_llvm-e4b800b5a2b91b1ba008aba6af93cebea9e18676.tar.bz2 | |
PathProfiling.c: Get rid of using "inline". We may expect compiler shall optimize out "static" scope w/o "inline".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144080 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'runtime/libprofile/PathProfiling.c')
| -rw-r--r-- | runtime/libprofile/PathProfiling.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/runtime/libprofile/PathProfiling.c b/runtime/libprofile/PathProfiling.c index b2d2eb7..71ee944 100644 --- a/runtime/libprofile/PathProfiling.c +++ b/runtime/libprofile/PathProfiling.c @@ -26,11 +26,6 @@ #include <stdlib.h> #include <stdio.h> -/* Must use __inline in Microsoft C */ -#if defined(_MSC_VER) -#define __inline__ __inline -#endif - /* note that this is used for functions with large path counts, but it is unlikely those paths will ALL be executed */ #define ARBITRARY_HASH_BIN_COUNT 100 @@ -112,7 +107,7 @@ void writeArrayTable(uint32_t fNumber, ftEntry_t* ft, uint32_t* funcCount) { } } -static __inline__ uint32_t hash (uint32_t key) { +static uint32_t hash (uint32_t key) { /* this may benefit from a proper hash function */ return key%ARBITRARY_HASH_BIN_COUNT; } @@ -155,7 +150,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 uint32_t* getPathCounter(uint32_t functionNumber, uint32_t pathNumber) { pathHashTable_t* hashTable; pathHashEntry_t* hashEntry; |
