[LLVMdev] DEBUG_TYPE

Peter Finn peterdfinn at icloud.com
Fri Jul 3 13:55:54 PDT 2015


Okay then, how should I define it?

Peter

Sent from my iPhone

> On Jul 3, 2015, at 4:53 PM, Philip Reames <listmail at philipreames.com> wrote:
> 
> No.  DEBUG_TYPE is used for grouping debug output and statistics.  The DEBUG_TYPE belongs in the source file.  The fact it's in the other headers is suspicious and might be worth checking on.
> 
> Philip
> 
>> On 07/03/2015 01:09 PM, Peter Finn wrote:
>> In include/llvm/ADT/Statistic.h, the identifier “DEBUG_TYPE” is never defined.  I’ve noticed it’s defined as different things in a few other header files, including llvm/Analysis/BlockFrequencyInfoImpl.h, llvm/Analysis/RegionInfoImpl.h, llvm/Support/UnicodeCharRanges.h, llvm/Transforms/InstCombine/InstCombineWorkList.h, and llvm/Transforms/Utils/SSAUpdaterImpl.h.  Should I edit Statistic.h so that it includes one of those?  If so, which one?  If not, what should I do?
>> 
>> Thanks,
>> Peter Finn
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 




More information about the llvm-dev mailing list