[cfe-dev] DEBUG macro not working in Clang

George Karpenkov via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 14 18:24:12 PDT 2017


> On Sep 14, 2017, at 6:16 PM, Friedman, Eli <efriedma at codeaurora.org> wrote:
> 
> On 9/14/2017 6:01 PM, George Karpenkov via cfe-dev wrote:
>> Hi All,
>> 
>> I wasn’t able to get the DEBUG macro defined in llvm/lib/Support/Debug.[h|cpp] and documented in LLVM Programmer’s Manual
>> to work with Clang, either through driver or through the frontend:
>> 
>> clang -cc1 -debug
>> 
>> dies with “no such option”,
>> 
>> and
>> 
>> clang —debug
>> 
>> runs, but the option is ignored.
> 
> You want "clang -mllvm -debug”.

Thanks, that’s great to know!

> 
> -Eli
> 
> -- 
> Employee of Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170914/670c5896/attachment.html>


More information about the cfe-dev mailing list