diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-25 02:23:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-25 02:23:48 +0000 |
commit | 4df605ba4617f3666aeaa2f101fc2e082b57117b (patch) | |
tree | 2a1b0b366ae503225568692d0dd936cbfe820cef /docs/LangRef.html | |
parent | 06388ae52d71433e6ed0f7388e2131e5b72405e3 (diff) | |
download | external_llvm-4df605ba4617f3666aeaa2f101fc2e082b57117b.zip external_llvm-4df605ba4617f3666aeaa2f101fc2e082b57117b.tar.gz external_llvm-4df605ba4617f3666aeaa2f101fc2e082b57117b.tar.bz2 |
Update to new syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/LangRef.html')
-rw-r--r-- | docs/LangRef.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 57aace8..9ab62c0 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -3907,7 +3907,7 @@ int *foo(struct ST *s) { %RT = <a href="#namedtypes">type</a> { i8 , [10 x [20 x i32]], i8 } %ST = <a href="#namedtypes">type</a> { i32, double, %RT } -define i32* %foo(%ST* %s) { +define i32* @foo(%ST* %s) { entry: %reg = getelementptr %ST* %s, i32 1, i32 2, i32 1, i32 5, i32 13 ret i32* %reg @@ -3931,7 +3931,7 @@ entry: the given testcase is equivalent to:</p> <pre> - define i32* %foo(%ST* %s) { + define i32* @foo(%ST* %s) { %t1 = getelementptr %ST* %s, i32 1 <i>; yields %ST*:%t1</i> %t2 = getelementptr %ST* %t1, i32 0, i32 2 <i>; yields %RT*:%t2</i> %t3 = getelementptr %RT* %t2, i32 0, i32 1 <i>; yields [10 x [20 x i32]]*:%t3</i> |