Use doc_code class.

llvm-svn: 31239
This commit is contained in:
Devang Patel 2006-10-27 23:06:27 +00:00
parent c6b12bd2b1
commit 2e13bf24c8
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ conservative escape analysis.
<li> Input source file <tt>a.c</tt> is compiled into LLVM byte code form. <li> Input source file <tt>a.c</tt> is compiled into LLVM byte code form.
<li> Input source file <tt>main.c</tt> is compiled into native object code. <li> Input source file <tt>main.c</tt> is compiled into native object code.
</ul> </ul>
<pre> <div class="doc_code"><pre>
--- a.h --- --- a.h ---
extern int foo1(void); extern int foo1(void);
extern void foo2(void); extern void foo2(void);
@ -132,7 +132,7 @@ int main() {
$ llvm-gcc4 --emit-llvm -c a.c -o a.o # &lt;-- a.o is LLVM bytecode file $ llvm-gcc4 --emit-llvm -c a.c -o a.o # &lt;-- a.o is LLVM bytecode file
$ llvm-gcc4 -c main.c -o main.o # &lt;-- main.o is native object file $ llvm-gcc4 -c main.c -o main.o # &lt;-- main.o is native object file
$ llvm-gcc4 a.o main.o -o main # &lt;-- standard link command without any modifications $ llvm-gcc4 a.o main.o -o main # &lt;-- standard link command without any modifications
</pre> </pre></div>
<p>In this example, the linker recognizes that <tt>foo2()</tt> is an <p>In this example, the linker recognizes that <tt>foo2()</tt> is an
externally visible symbol defined in LLVM byte code file. This information externally visible symbol defined in LLVM byte code file. This information
is collected using <a href="#readllvmobjectfile"> readLLVMObjectFile()</a>. is collected using <a href="#readllvmobjectfile"> readLLVMObjectFile()</a>.