view 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
line wrap: on
line source

; ModuleID = 'wrap.bc'
@errno = external global i32		; <i32*> [#uses=2]

define i32 @getErrno() {
entry:
	%tmp = load i32* @errno		; <i32> [#uses=1]
	ret i32 %tmp
}

define i32 @setErrno(i32 %val) {
entry:
	store i32 %val, i32* @errno
	ret i32 %val
}