[cfe-dev] Wanna learn LLVM IR fast by compiling C++ tests into LLVM IR using Clang

David Blaikie via cfe-dev cfe-dev at lists.llvm.org
Sun Oct 30 10:13:56 PDT 2016


add -c

On Sun, Oct 30, 2016 at 10:05 AM Pavel Senatorov via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> 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?
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161030/cbfc24af/attachment.html>


More information about the cfe-dev mailing list