diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-02 21:08:14 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-02 21:08:14 +0000 |
commit | 7283e7c0569cd787ea21856d55aee84a5c8d4ab0 (patch) | |
tree | dd9dc0f71e9ab64a93b9d21b08784f98fec302c7 /docs | |
parent | 683ade38a996fb869a6dd57e3168575acee1c167 (diff) | |
download | external_llvm-7283e7c0569cd787ea21856d55aee84a5c8d4ab0.zip external_llvm-7283e7c0569cd787ea21856d55aee84a5c8d4ab0.tar.gz external_llvm-7283e7c0569cd787ea21856d55aee84a5c8d4ab0.tar.bz2 |
Modernize example, so that you can paste it right into llvm-as
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 1b9dc45..47fc33e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -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> |