Mercurial > projects > ldc
annotate tango/lib/common/tango/stdc/wrap.ll @ 133:44a95ac7368a trunk
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
author | lindquist |
---|---|
date | Mon, 14 Jan 2008 05:11:54 +0100 |
parents | 1700239cab2e |
children |
rev | line source |
---|---|
132 | 1 ; ModuleID = 'wrap.bc' |
133
44a95ac7368a
[svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
lindquist
parents:
132
diff
changeset
|
2 @errno = external thread_local global i32 ; <i32*> [#uses=2] |
132 | 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 } |