[OMPT][test] Correct warning about added wrapper functions

This affects all outlined functions, not just tasks! Only show warning
when using Clang 5.0 or later.

Differential Revision: https://reviews.llvm.org/D43190

llvm-svn: 325131
This commit is contained in:
Jonas Hahnfeld 2018-02-14 15:15:24 +00:00
parent 3b4294edd2
commit cc6d29d72c
1 changed files with 4 additions and 2 deletions

View File

@ -74,8 +74,10 @@ do {\
#define print_frame_from_outlined_fn(level) print_frame(level)
#endif
#warning "Clang 5.0 and later add an additional wrapper function for tasks when compiling with debug information."
#warning "Please define -DDEBUG iff you manually pass in -g!"
#if defined(__clang__) && __clang_major__ >= 5
#warning "Clang 5.0 and later add an additional wrapper for outlined functions when compiling with debug information."
#warning "Please define -DDEBUG iff you manually pass in -g to make the tests succeed!"
#endif
#endif
// This macro helps to define a label at the current position that can be used