search for: llvm_dump_function

Displaying 3 results from an estimated 3 matches for "llvm_dump_function".

2017 Apr 10
2
Question about LLVM Building Error with "-DLLVM_ENABLE_DUMP" and "RelWithDebInfo"
> On Apr 10, 2017, at 12:37 PM, Matthias Braun <mbraun at apple.com> wrote: > > The situation is not consistent. Yes there are several places where we have the #if in the headers however there are far more cases where it is not. Some points here: > > - This whole LLVM_DUMP_FUNCTION/LLVM_ENABLE_DUMP is about enabling the linker to strip (or not strip) the dumping function in release (debug) builds. > - For this it doesn't matter whether you have a declaration in the header or not, so it seems we standardized on not having it there. > - Things are 100% consistent so w...
2017 Apr 10
2
Question about LLVM Building Error with "-DLLVM_ENABLE_DUMP" and "RelWithDebInfo"
...ilto:mbraun at apple.com>> wrote: >>> >>> The situation is not consistent. Yes there are several places where >>> we have the #if in the headers however there are far more cases >>> where it is not. Some points here: >>> >>> - This whole LLVM_DUMP_FUNCTION/LLVM_ENABLE_DUMP is about enabling >>> the linker to strip (or not strip) the dumping function in release >>> (debug) builds. >>> - For this it doesn't matter whether you have a declaration in the >>> header or not, so it seems we standardized on not havin...
2017 Apr 10
5
Question about LLVM Building Error with "-DLLVM_ENABLE_DUMP" and "RelWithDebInfo"
Presently several of our headers have definitions like: #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) void dump() const; #endif Would it make sense to modify the build system to define LLVM_ENABLE_DUMP in config.h on debug builds? Then we could wrap dump methods just based on LLVM_ENABLE_DUMP instead of two variables. -Chris > On Apr 10, 2017, at 1:34 PM, Robinson, Paul via llvm-dev