From 022e34dd1ae9e8a6ad7f96a144b6a9fad9212b7a Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 12 Feb 2007 05:02:56 +0000 Subject: [PATCH] Update for llvm-gcc v4.0 usage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34191 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/llvmgcc.pod | 26 ++++++++------------------ docs/CommandGuide/llvmgxx.pod | 26 ++++++++------------------ 2 files changed, 16 insertions(+), 36 deletions(-) diff --git a/docs/CommandGuide/llvmgcc.pod b/docs/CommandGuide/llvmgcc.pod index 189395124c0..3accd0358f7 100644 --- a/docs/CommandGuide/llvmgcc.pod +++ b/docs/CommandGuide/llvmgcc.pod @@ -11,15 +11,12 @@ B [I] I =head1 DESCRIPTION The B command is the LLVM C front end. It is a modified -version of gcc that takes C programs and compiles them into LLVM -bytecode or assembly language, depending upon the options. +version of gcc that compiles C/ObjC programs into native objects, LLVM +bytecode or LLVM assembly language, depending upon the options. -Unless the B<-S> option is specified, B will use the -L program to perform some optimizations and create an -LLVM bytecode file. Unless the B<-c> option is specified, B -will also use the L program to perform further -optimizations and link the resulting bytecode file(s) with support -libraries to create an executable program. +By default, B compiles to native objects just like GCC does. If the +B<-emit-llvm> option is given then it will generate LLVM bytecode files instead. +If B<-S> (assembly) is also given, then it will generate LLVM assembly. Being derived from the GNU Compiler Collection, B has many of gcc's features and accepts most of gcc's options. It handles a @@ -64,17 +61,10 @@ repeated. Link in the library libI.[bc | a | so]. This library should be a bytecode library. -=item B<-Wa,>I