<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Hello all,</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">This could be a naive question, but still asking it here because of my limited knowledge on clang/llvm infrastructure.</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><b>Question:</b> When I pass `-v save-temps` options to clang++, I was expecting to see the command line for both `opt` and `llc` in the expanded command line output, but, I don't see it. What am I missing?</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><b>Clang++ Command Line:</b>  clang++ -v -save-temps hello.cpp</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><b>Expanded Command Line Output:</b></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><div class="gmail_default"><div class="gmail_default">clang version 9.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a> 2d6bb13443d86d650e92b280d4f7df0805eebac7)</div><div class="gmail_default">Target: x86_64-unknown-linux-gnu</div><div class="gmail_default">Thread model: posix</div><div class="gmail_default">InstalledDir: /home/mahesha/LLVM/install/bin</div><div class="gmail_default">Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7</div><div class="gmail_default">Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0</div><div class="gmail_default">Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/8</div><div class="gmail_default">Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/7.3.0</div><div class="gmail_default">Candidate multilib: .;@m64</div><div class="gmail_default">Selected multilib: .;@m64</div><div class="gmail_default"> "/home/mahesha/LLVM/install/bin/clang-9" -cc1 -triple x86_64-unknown-linux-gnu -E -save-temps=cwd -disable-free -main-file-name hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-</div><div class="gmail_default">errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /home/mahesha/LLVM/install/lib/clang/9.0.0 -internal-isystem</div><div class="gmail_default"> /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/x86_64-linux-gnu/c++/7.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux</div><div class="gmail_default">-gnu/7.3.0/../../../../include/x86_64-linux-gnu/c++/7.3.0 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/backward -internal-isystem /usr/local/include -internal-isystem /home</div><div class="gmail_default">/mahesha/LLVM/install/lib/clang/9.0.0/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -fdeprecated-macro -fdebug-compilat</div><div class="gmail_default">ion-dir /home/mahesha/Scratch -ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o hello.ii -x c++ hello.cpp -faddrsig</div><div class="gmail_default">clang -cc1 version 9.0.0 based upon LLVM 9.0.0svn default target x86_64-unknown-linux-gnu</div><div class="gmail_default">ignoring nonexistent directory "/include"</div><div class="gmail_default">ignoring duplicate directory "/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/x86_64-linux-gnu/c++/7.3.0"</div><div class="gmail_default">#include "..." search starts here:</div><div class="gmail_default">#include <...> search starts here:</div><div class="gmail_default"> /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0</div><div class="gmail_default"> /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/x86_64-linux-gnu/c++/7.3.0</div><div class="gmail_default"> /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../../include/c++/7.3.0/backward</div><div class="gmail_default"> /usr/local/include</div><div class="gmail_default"> /home/mahesha/LLVM/install/lib/clang/9.0.0/include</div><div class="gmail_default"> /usr/include/x86_64-linux-gnu</div><div class="gmail_default"> /usr/include</div><div class="gmail_default">End of search list.</div><div class="gmail_default"> "/home/mahesha/LLVM/install/bin/clang-9" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -save-temps=cwd -disable-free -main-file-name hello.cpp -mrelocation-model static -mthread-model</div><div class="gmail_default">posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /home/mahesha/LLVM/install/li</div><div class="gmail_default">b/clang/9.0.0 -fdeprecated-macro -fdebug-compilation-dir /home/mahesha/Scratch -ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics</div><div class="gmail_default"> -disable-llvm-passes -o hello.bc -x c++-cpp-output hello.ii -faddrsig</div><div class="gmail_default">clang -cc1 version 9.0.0 based upon LLVM 9.0.0svn default target x86_64-unknown-linux-gnu</div><div class="gmail_default">#include "..." search starts here:</div><div class="gmail_default">End of search list.</div><div class="gmail_default"> "/home/mahesha/LLVM/install/bin/clang-9" -cc1 -triple x86_64-unknown-linux-gnu -S -save-temps=cwd -disable-free -main-file-name hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-</div><div class="gmail_default">errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -dwarf-column-info -debugger-tuning=gdb -v -resource-dir /home/mahesha/LLVM/install/lib/clang/9.0.0 -fdebug-compilati</div><div class="gmail_default">on-dir /home/mahesha/Scratch -ferror-limit 19 -fmessage-length 211 -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o hello.s -x ir hello.bc -faddrsig</div><div class="gmail_default">clang -cc1 version 9.0.0 based upon LLVM 9.0.0svn default target x86_64-unknown-linux-gnu</div><div class="gmail_default"> "/home/mahesha/LLVM/install/bin/clang-9" -cc1as -triple x86_64-unknown-linux-gnu -filetype obj -main-file-name hello.cpp -target-cpu x86-64 -dwarf-version=4 -mrelocation-model static -mrelax-all -o hello.o hell</div><div class="gmail_default">o.s</div><div class="gmail_default"> "/usr/bin/ld" -z relro --hash-style=gnu --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o a.out /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64</div><div class="gmail_default">-linux-gnu/7.3.0/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7.3.0/crtbegin.o -L/usr/lib/gcc/x86_64-linux-gnu/7.3.0 -L/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu -L/lib/x86_6</div><div class="gmail_default">4-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../.. -L/home/mahesha/LLVM/install/bin/../lib -L/lib -L/usr/lib hello.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lg</div><div class="gmail_default">cc /usr/lib/gcc/x86_64-linux-gnu/7.3.0/crtend.o /usr/lib/gcc/x86_64-linux-gnu/7.3.0/../../../x86_64-linux-gnu/crtn.o</div></div><div class="gmail_default"><div class="gmail_default"><br></div></div></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><div class="gmail_default"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></div><div class="gmail_default"><span style="font-family:Arial,Helvetica,sans-serif">-- </span><br></div></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Thanks,</div><div>Mahesha<br></div></div></div></div></div></div></div></div></div>