Modernize example, so that you can paste it right into llvm-as
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 2 Jul 2004 21:08:14 +0000 (21:08 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 2 Jul 2004 21:08:14 +0000 (21:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14583 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 1b9dc458ccf9d99e596abd58f18cda7d2368d7aa..47fc33ebbb7f59e08c2af983c7c4a044158143db 100644 (file)
@@ -1511,8 +1511,11 @@ compiled to LLVM:</p>
   %RT = type { sbyte, [10 x [20 x int]], sbyte }
   %ST = type { int, double, %RT }
 
-  int* "foo"(%ST* %s) {
-    %reg = getelementptr %ST* %s, int 1, uint 2, uint 1, int 5, int 13<br>
+  implementation
+
+  int* %foo(%ST* %s) {
+  entry:
+    %reg = getelementptr %ST* %s, int 1, uint 2, uint 1, int 5, int 13
     ret int* %reg
   }
 </pre>