diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-05-04 20:50:39 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-05-04 20:50:39 +0000 |
commit | 377552607e51dc1d3e6ff33833f9620bcfe815ac (patch) | |
tree | 3c3ffb5df9fa6dfb2c48b807faf73dd2943db75d /docs/FAQ.html | |
parent | 750ce4d809c7e2a298a389a512a17652ff5be3f2 (diff) | |
download | FreeBSD-src-377552607e51dc1d3e6ff33833f9620bcfe815ac.zip FreeBSD-src-377552607e51dc1d3e6ff33833f9620bcfe815ac.tar.gz |
Update LLVM to r103052.
Diffstat (limited to 'docs/FAQ.html')
-rw-r--r-- | docs/FAQ.html | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/FAQ.html b/docs/FAQ.html index 31fc0c0..eb162f1 100644 --- a/docs/FAQ.html +++ b/docs/FAQ.html @@ -632,22 +632,22 @@ Stop. <p>Use commands like this:</p> <ol> - <li><p>Compile your program as normal with llvm-g++:</p> + <li><p>Compile your program with llvm-g++:</p> <pre class="doc_code"> -% llvm-g++ x.cpp -o program +% llvm-g++ -emit-llvm x.cpp -o program.bc -c </pre> <p>or:</p> <pre class="doc_code"> -% 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 </pre> - <p>With llvm-gcc3, this will generate program and program.bc. The .bc - file is the LLVM version of the program all linked together.</p></li> + <p>This will generate program and program.bc. The .bc + file is the LLVM version of the program all linked together.</p></li> <li><p>Convert the LLVM code to C code, using the LLC tool with the C backend:</p> @@ -659,7 +659,7 @@ Stop. <li><p>Finally, compile the C file:</p> <pre class="doc_code"> -% cc x.c +% cc x.c -lstdc++ </pre></li> </ol> @@ -931,7 +931,7 @@ F.i: src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br> - Last modified: $Date: 2010-02-26 00:41:41 +0100 (Fri, 26 Feb 2010) $ + Last modified: $Date: 2010-05-04 20:16:00 +0200 (Tue, 04 May 2010) $ </address> </body> |