summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Alarm.inc
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-02-08 22:47:39 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-02-08 22:47:39 +0000
commit8b5bfbfc7a37ea20cfc7c8c73aac14e7157e4c4e (patch)
tree6e658f3a29029a47c9b5b29b269c62f2ba7b0ca0 /llvm/lib/System/Unix/Alarm.inc
parent9c964ac27280cb7b40bec5b7757cc7b32cd72dcb (diff)
downloadbcm5719-llvm-8b5bfbfc7a37ea20cfc7c8c73aac14e7157e4c4e.tar.gz
bcm5719-llvm-8b5bfbfc7a37ea20cfc7c8c73aac14e7157e4c4e.zip
Add a Sleep() function.
llvm-svn: 64101
Diffstat (limited to 'llvm/lib/System/Unix/Alarm.inc')
-rw-r--r--llvm/lib/System/Unix/Alarm.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Alarm.inc b/llvm/lib/System/Unix/Alarm.inc
index 7faa6afa9ad..28ff1b8a636 100644
--- a/llvm/lib/System/Unix/Alarm.inc
+++ b/llvm/lib/System/Unix/Alarm.inc
@@ -66,3 +66,7 @@ int sys::AlarmStatus() {
return 1;
return 0;
}
+
+void Sleep(unsigned n) {
+ ::sleep(n);
+}
OpenPOWER on IntegriCloud