From 860e0b4c950285fcaaefc3c218c9d7276fb609e8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 May 2010 18:15:33 +0000 Subject: [PATCH] update instructions for llvm-gcc4, the brave new world! PR7037 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103023 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/FAQ.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/FAQ.html b/docs/FAQ.html index 337866cd9dd..ad97be16b23 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -632,22 +632,22 @@ Stop.

Use commands like this:

    -
  1. Compile your program as normal with llvm-g++:

    +
  2. Compile your program with llvm-g++:

    -% llvm-g++ x.cpp -o program
    +% llvm-g++ -emit-llvm x.cpp -o program.bc -c
     

    or:

    -% llvm-g++ a.cpp -c
    -% llvm-g++ b.cpp -c
    -% llvm-g++ a.o b.o -o program
    +% llvm-g++ a.cpp -c -emit-llvm
    +% llvm-g++ b.cpp -c -emit-llvm
    +% llvm-ld a.o b.o -o program
     
    -

    With llvm-gcc3, this will generate program and program.bc. The .bc - file is the LLVM version of the program all linked together.

  3. +

    This will generate program and program.bc. The .bc + file is the LLVM version of the program all linked together.

  4. Convert the LLVM code to C code, using the LLC tool with the C backend: