X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=runtime%2Flibprofile%2FPathProfiling.c;h=71ee944fc569ba2dcc001077f2c53744490cdb86;hb=f6670729aabc1fab85238d2b306a1c1767a807bb;hp=283678521381383c42c811e21211e7c11ef600a9;hpb=4f5558e676b8c34d5094681d2797367682f96918;p=oota-llvm.git diff --git a/runtime/libprofile/PathProfiling.c b/runtime/libprofile/PathProfiling.c index 28367852138..71ee944fc56 100644 --- a/runtime/libprofile/PathProfiling.c +++ b/runtime/libprofile/PathProfiling.c @@ -26,11 +26,6 @@ #include #include -/* 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;