Index: lib/profile/InstrProfiling.h =================================================================== --- lib/profile/InstrProfiling.h +++ lib/profile/InstrProfiling.h @@ -19,32 +19,13 @@ #define LLVM_LIBRARY_VISIBILITY __attribute__((visibility("hidden"))) #define LLVM_SECTION(Sect) __attribute__((section(Sect))) -#if defined(__FreeBSD__) && defined(__i386__) - -/* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to - * FreeBSD 10, r232261) when compiled in 32-bit mode. - */ -#define PRIu64 "llu" -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; -typedef uint32_t uintptr_t; -#elif defined(__FreeBSD__) && defined(__x86_64__) -#define PRIu64 "lu" -typedef unsigned char uint8_t; -typedef unsigned short uint16_t; -typedef unsigned int uint32_t; -typedef unsigned long long uint64_t; -typedef unsigned long int uintptr_t; - -#else /* defined(__FreeBSD__) && defined(__i386__) */ +#if defined (__FreeBSD__) +#include +#else #include #include - -#endif /* defined(__FreeBSD__) && defined(__i386__) */ - +#endif #include "InstrProfData.inc" enum ValueKind {