5 llvm-g++ - LLVM C++ front-end
9 B<llvm-g++> [I<options>] I<filename>
13 The B<llvm-g++> command is the LLVM C++ front end. It is a modified
14 version of g++ that compiles C++/ObjC++ programs into native code,
15 LLVM bitcode or assembly language, depending upon the options.
17 By default, B<llvm-g++> compiles to native objects just like GCC does. If the
18 B<-emit-llvm> option is given then it will generate LLVM bitcode files instead.
19 If B<-S> (assembly) is also given, then it will generate LLVM assembly.
21 Being derived from the GNU Compiler Collection, B<llvm-g++> has many
22 of g++'s features and accepts most of g++'s options. It handles a
23 number of g++'s extensions to the C++ programming language.
31 Print a summary of command line options.
35 Do not generate an LLVM bitcode file. Rather, compile the source
36 file into an LLVM assembly language file.
40 Do not generate a linked executable. Rather, compile the source
41 file into an LLVM bitcode file. This bitcode file can then be
42 linked with other bitcode files later on to generate a full LLVM
45 =item B<-o> I<filename>
47 Specify the output file to be I<filename>.
49 =item B<-I> I<directory>
51 Add a directory to the header file search path. This option can be
54 =item B<-L> I<directory>
56 Add I<directory> to the library search path. This option can be
61 Link in the library libI<name>.[bc | a | so]. This library should
66 Make the output be LLVM bitcode (or assembly) instead of native object (or
73 If B<llvm-g++> succeeds, it will exit with 0. Otherwise, if an error
74 occurs, it will exit with a non-zero value.
82 Maintained by the LLVM Team (L<http://llvm.org>).