From 682f675c86a2117ebef840254b47cfec99e96326 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 27 Oct 2006 23:06:27 +0000 Subject: Use doc_code class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31239 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LinkTimeOptimization.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/LinkTimeOptimization.html') 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.
  • Input source file a.c is compiled into LLVM byte code form.
  • Input source file main.c is compiled into native object code. -
    +
     --- 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
    -
    +

    In this example, the linker recognizes that foo2() is an externally visible symbol defined in LLVM byte code file. This information is collected using readLLVMObjectFile(). -- cgit v1.1