Mercurial > projects > ldc
comparison tango/lib/common/tango/stdc/wrap.ll @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children | 44a95ac7368a |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
1 ; ModuleID = 'wrap.bc' | |
2 @errno = external global i32 ; <i32*> [#uses=2] | |
3 | |
4 define i32 @getErrno() { | |
5 entry: | |
6 %tmp = load i32* @errno ; <i32> [#uses=1] | |
7 ret i32 %tmp | |
8 } | |
9 | |
10 define i32 @setErrno(i32 %val) { | |
11 entry: | |
12 store i32 %val, i32* @errno | |
13 ret i32 %val | |
14 } |