From: Chris Lattner Date: Tue, 12 Jun 2007 17:00:26 +0000 (+0000) Subject: modernize example X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a89e5f1fd537e90b0582f7f8025086062cfbb210;p=oota-llvm.git modernize example git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37557 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index e8813d2751b..3c67f031785 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -378,21 +378,21 @@ symbol table entries. Here is an example of the "hello world" module:

; Declare the string constant as a global constant...
-%.LC0 = internal constant [13 x i8 ] c"hello world\0A\00"          ; [13 x i8 ]*
+@.LC0 = internal constant [13 x i8] c"hello world\0A\00"          ; [13 x i8]*
 
 ; External declaration of the puts function
-declare i32 %puts(i8 *)                                            ; i32(i8 *)* 
+declare i32 @puts(i8 *)                                            ; i32(i8 *)* 
 
 ; Definition of main function
-define i32 %main() {                                                 ; i32()* 
+define i32 @main() {                                                 ; i32()* 
         ; Convert [13x i8 ]* to i8  *...
         %cast210 = getelementptr [13 x i8 ]* %.LC0, i64 0, i64 0 ; i8 *
 
         ; Call puts function to write out the string to stdout...
         call i32 %puts(i8 * %cast210)                              ; i32
+ href="#i_call">call i32 @puts(i8 * %cast210)                              ; i32
         ret i32 0
}