summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LinkTimeOptimization.html
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-10-27 23:06:27 +0000
committerDevang Patel <dpatel@apple.com>2006-10-27 23:06:27 +0000
commit2e13bf24c8df99fbb8db1181bd338f4c4a316c10 (patch)
tree32d62f834a2b26b4ae9e494fe3c0cb2f667b12ac /llvm/docs/LinkTimeOptimization.html
parentc6b12bd2b1aa078766757fedbae34531b54a8b68 (diff)
downloadbcm5719-llvm-2e13bf24c8df99fbb8db1181bd338f4c4a316c10.tar.gz
bcm5719-llvm-2e13bf24c8df99fbb8db1181bd338f4c4a316c10.zip
Use doc_code class.
llvm-svn: 31239
Diffstat (limited to 'llvm/docs/LinkTimeOptimization.html')
-rw-r--r--llvm/docs/LinkTimeOptimization.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/LinkTimeOptimization.html b/llvm/docs/LinkTimeOptimization.html
index e237718458f..a79efa86935 100644
--- a/llvm/docs/LinkTimeOptimization.html
+++ b/llvm/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 # &lt;-- a.o is LLVM bytecode 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
-</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>.
OpenPOWER on IntegriCloud