<div dir="ltr">I'm not very familiar with this macro, as it seems to be new, but looking at llvm/include/llvm/Support/Debug.h it has this comment:<div><br></div><div>// In particular, just wrap your code with the LLVM_DEBUG() macro, and it will<br>// be enabled automatically if you specify '-debug' on the command-line.<br>// LLVM_DEBUG() requires the DEBUG_TYPE macro to be defined. <br></div><div><br></div><div>So, perhaps you should try adding -debug to your command line and seeing if that fixes the problem.</div><div><br></div><div>If that doesn't fix it, someone else may need to help as I'm not familiar with this issue specifically.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:47 PM Joan Lluch <<a href="mailto:joan.lluch@icloud.com">joan.lluch@icloud.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Sorry Zach, my apologies. <div><br></div><div>I understood now what you mean. I tried and it works!. <div><br></div><div>But now I found that LLVM_DEBUG statements and other output to the console doesn’t show. How do I get that back?.<div><br></div><div>Thanks </div><div><br></div><div>John <div><br></div><div><br><div><blockquote type="cite"><div>On 4 Nov 2019, at 22:26, Zachary Turner <<a href="mailto:zturner@roblox.com" target="_blank">zturner@roblox.com</a>> wrote:</div><br><div><div dir="ltr">You hit Reply on my email but then addressed David.  So I want to make sure you saw my suggestion.  Let me know if you tried that and/or whether or not it solved your problem.<div><br></div><div>Zach</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:23 PM Joan Lluch <<a href="mailto:joan.lluch@icloud.com" target="_blank">joan.lluch@icloud.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi David,<div><br></div><div>I understand what you say, but have you actually read my messages? I don’t think so,</div><div><br></div><div>Anyway, I will repost the question in case someone else can help.</div><div><br></div><div>Thanks</div><div><br></div><div>John</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div><blockquote type="cite"><div>On 4 Nov 2019, at 22:18, Zachary Turner <<a href="mailto:zturner@roblox.com" target="_blank">zturner@roblox.com</a>> wrote:</div><br><div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 4, 2019 at 1:11 PM Joan Lluch via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi David,<div><br></div><div>Thank you for your patience but I still don’t get it:  I don’t see how that is a “command”, as it’s just a list of strings that state command options.</div><div><br></div></div></blockquote><div>This is the output you pasted after running the command:</div><div><br></div><div><span style="color:rgb(80,0,80)">> "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/bin/clang" "-cc1" "-triple" "msp430" "-emit-llvm" "-disable-free" "-main-file-name" "main.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc" "-dwarf-column-info" "-debugger-tuning=gdb" "-target-linker-version" "305" "-momit-leaf-frame-pointer" "-coverage-notes-file" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)">Relay/RelayNou/main.gcno" "-resource-dir" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/lib/clang/</span><span style="color:rgb(80,0,80)">9.0.1" "-internal-isystem" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/bin/../</span><span style="color:rgb(80,0,80)">msp430/include" "-Oz" "-fdebug-compilation-dir" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)">Relay/RelayNou" "-ferror-limit" "19" "-fmessage-length" "224" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-faddrsig" "-o" "main.ll" "-x" "c" "main.c"</span> </div><div><br></div><div>Yes it is a list of strings.  But the first string <span style="color:rgb(80,0,80)">"/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/bin/clang" is a command.  The rest are arguments.  So you should set your debugger to run this command:</span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">"/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/bin/clang"</span> </div><div><br></div><div>with these arguments:</div><div><br></div><div><span style="color:rgb(80,0,80)">"-cc1" "-triple" "msp430" "-emit-llvm" "-disable-free" "-main-file-name" "main.c" "-mrelocation-model" "static" "-mthread-model" "posix" "-fmath-errno" "-masm-verbose" "-mconstructor-aliases" "-nostdsysteminc" "-dwarf-column-info" "-debugger-tuning=gdb" "-target-linker-version" "305" "-momit-leaf-frame-pointer" "-coverage-notes-file" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)">Relay/RelayNou/main.gcno" "-resource-dir" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/lib/clang/</span><span style="color:rgb(80,0,80)">9.0.1" "-internal-isystem" "/Users/joan/LLVM-9/llvm-</span><span style="color:rgb(80,0,80)">project/build/Debug/bin/../</span><span style="color:rgb(80,0,80)">msp430/include" "-Oz" "-fdebug-compilation-dir" "/Users/joan/Documents-Local/</span><span style="color:rgb(80,0,80)">Relay/RelayNou" "-ferror-limit" "19" "-fmessage-length" "224" "-fobjc-runtime=gcc" "-fdiagnostics-show-option" "-fcolor-diagnostics" "-vectorize-slp" "-faddrsig" "-o" "main.ll" "-x" "c" "main.c"</span><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)"><br></span></div><div><span style="color:rgb(80,0,80)">Does that make sense?</span></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div>