diff options
author | Devang Patel <dpatel@apple.com> | 2006-10-27 23:06:27 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-10-27 23:06:27 +0000 |
commit | 682f675c86a2117ebef840254b47cfec99e96326 (patch) | |
tree | 91cd20e0e82f3def87c6e5c5a3e4c826221a139d /docs | |
parent | 2f6d4c9766e920602326cfe26f5985077156d890 (diff) | |
download | external_llvm-682f675c86a2117ebef840254b47cfec99e96326.zip external_llvm-682f675c86a2117ebef840254b47cfec99e96326.tar.gz external_llvm-682f675c86a2117ebef840254b47cfec99e96326.tar.bz2 |
Use doc_code class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LinkTimeOptimization.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/LinkTimeOptimization.html b/docs/LinkTimeOptimization.html index e237718..a79efa8 100644 --- a/docs/LinkTimeOptimization.html +++ b/docs/LinkTimeOptimization.html @@ -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>main.c</tt> is compiled into native object code. </ul> -<pre> +<div class="doc_code"><pre> --- a.h --- extern int foo1(void); extern void foo2(void); @@ -132,7 +132,7 @@ int main() { $ llvm-gcc4 --emit-llvm -c a.c -o a.o # <-- a.o is LLVM bytecode file $ llvm-gcc4 -c main.c -o main.o # <-- main.o is native object file $ llvm-gcc4 a.o main.o -o main # <-- standard link command without any modifications -</pre> +</pre></div> <p>In this example, the linker recognizes that <tt>foo2()</tt> is an externally visible symbol defined in LLVM byte code file. This information is collected using <a href="#readllvmobjectfile"> readLLVMObjectFile()</a>. |