diff options
| author | Xinliang David Li <davidxl@google.com> | 2015-12-04 20:09:55 +0000 |
|---|---|---|
| committer | Xinliang David Li <davidxl@google.com> | 2015-12-04 20:09:55 +0000 |
| commit | 4c8a5e37e2d97e135d13bbe6a574cb71bff083a4 (patch) | |
| tree | 7a1bcc0541177c9763d259e1b285bc5a44b66342 | |
| parent | e8aeaeb7125fd31ed368d2793fe28a34117bd7f7 (diff) | |
| download | bcm5719-llvm-4c8a5e37e2d97e135d13bbe6a574cb71bff083a4.tar.gz bcm5719-llvm-4c8a5e37e2d97e135d13bbe6a574cb71bff083a4.zip | |
Move macro defs closer (NFC)
llvm-svn: 254761
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfiling.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h index 0aa24071ba6..54142c4227d 100644 --- a/compiler-rt/lib/profile/InstrProfiling.h +++ b/compiler-rt/lib/profile/InstrProfiling.h @@ -19,6 +19,11 @@ #define LLVM_LIBRARY_VISIBILITY __attribute__((visibility("hidden"))) #define LLVM_SECTION(Sect) __attribute__((section(Sect))) +#define PROF_ERR(Format, ...) \ + if (getenv("LLVM_PROFILE_VERBOSE_ERRORS")) \ + fprintf(stderr, Format, __VA_ARGS__ ); + + #if defined(__FreeBSD__) && defined(__i386__) /* System headers define 'size_t' incorrectly on x64 FreeBSD (prior to @@ -163,8 +168,4 @@ uint64_t __llvm_profile_get_magic(void); /*! \brief Get the version of the file format. */ uint64_t __llvm_profile_get_version(void); -#define PROF_ERR(Format, ...) \ - if (getenv("LLVM_PROFILE_VERBOSE_ERRORS")) \ - fprintf(stderr, Format, __VA_ARGS__ ); - #endif /* PROFILE_INSTRPROFILING_H_ */ |

