[llvm-commits] [llvm] r163339 - in /llvm/trunk/lib: CodeGen/ CodeGen/SelectionDAG/ Target/X86/

Manman Ren mren at apple.com
Mon Sep 10 15:05:15 PDT 2012



On Sep 8, 2012, at 1:29 AM, Duncan Sands <baldrick at free.fr> wrote:

> PS: I just understood that Chandler is talking about debugging in the sense of
>  DEBUG(XYZ->dump());
> lines inside the LLVM code base, while I was talking about debugging from within
> the debugger.  Chandler's use case is of course much more common than mine.
> 
> It is clear that ->dump() has to be available if DEBUG(...) macros are turned
> on.  That means that !NDEBUG has to turn on LLVM_ENABLE_DUMP, since !NDEBUG
> enables DEBUG(...).
> 
> So I now agree with Chandler: !NDEBUG should turn on LLVM_ENABLE_DUMP, however
> there should be a way of explicitly asking for LLVM_ENABLE_DUMP to be turned
> on even if NDEBUG, by passing some option to configure.
As a first step, I am going to add LLVM_ENABLE_DUMP to the files changed in this commit and commit r163344:
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

Then I will try to enable passing options to configure.

Let me know whether that works,
Thanks,
Manman


> 
> Ciao, Duncan.
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list