From a89e5f1fd537e90b0582f7f8025086062cfbb210 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 12 Jun 2007 17:00:26 +0000 Subject: [PATCH] modernize example git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37557 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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
}
-- 2.34.1