[compiler-rt] r254761 - Move macro defs closer (NFC)
Xinliang David Li via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 4 12:09:55 PST 2015
Author: davidxl
Date: Fri Dec 4 14:09:55 2015
New Revision: 254761
URL: http://llvm.org/viewvc/llvm-project?rev=254761&view=rev
Log:
Move macro defs closer (NFC)
Modified:
compiler-rt/trunk/lib/profile/InstrProfiling.h
Modified: compiler-rt/trunk/lib/profile/InstrProfiling.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.h?rev=254761&r1=254760&r2=254761&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.h (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.h Fri Dec 4 14:09:55 2015
@@ -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_ */
More information about the llvm-commits
mailing list