Wanna learn LLVM IR fast by compiling C++ tests into LLVM IR using Clang

Tried to use
\T\LLVM\bin\clang -emit-llvm -S -o T0.Cpp.ir -v T0.Cpp
without success: below clang output:

C:\S\LLVM>\T\LLVM\bin\clang -emit-llvm -S -o T0.Cpp.ir -v T0.Cpp
clang version 3.9.0 (branches/release_39)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\T\LLVM\bin
clang.exe: warning: T0.Cpp: 'linker' input unused
clang.exe: warning: argument unused during compilation: '-emit-llvm'

Looks like T0.Cpp was not even read.

What to do?

add -c

Does not work, just adds that -c not used during.

Call the file .cpp and not .Cpp.

Joerg

Cheer! It works! Thank you.

Does not understand resulting .ir yet it's my start to learn unknown commands.

Pavel Senatorov
Developer of programming language Ya.
http://Ya-Lang.com