llvm.org GIT mirror llvm / b89e699
Unbreak the MSVC build: - unistd.h doesn't exist with MSVC - inline must be __inline in Microsoft C - atexit cannot take a function declared as void f(), must be void f(void). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130490 91177308-0d34-0410-b5e6-96231b3b80d8 Francois Pichet 8 years ago
2 changed file(s) with 15 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1818 #include
1919 #include
2020 #include
21 #if !defined(_MSC_VER) && !defined(__MINGW32__)
2122 #include
23 #else
24 #include
25 #endif
2226 #include
2327
2428 static char *SavedArgs = 0;
1515 #include "Profiling.h"
1616 #include "llvm/Analysis/ProfileInfoTypes.h"
1717 #include
18 #include
18 #if !defined(_MSC_VER) && !defined(__MINGW32__)
19 #include
20 #else
21 #include
22 #endif
1923 #include
2024 #include
21 #include
2225 #include
2326 #include
27
28 // Must use __inline in Microsoft C
29 #if defined(_MSC_VER)
30 #define inline __inline
31 #endif
2432
2533 /* note that this is used for functions with large path counts,
2634 but it is unlikely those paths will ALL be executed */
214222 * +-----------------+-----------------+
215223 *
216224 */
217 static void pathProfAtExitHandler() {
225 static void pathProfAtExitHandler(void) {
218226 int outFile = getOutFile();
219227 uint32_t i;
220228 uint32_t header[2] = { PathInfo, 0 };