summaryrefslogtreecommitdiff
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-07-03 04:00:51 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-07-03 04:00:51 +0000
commitf0f85eab0469ac93f9bb6c7d19aca2c35868d83a (patch)
treed787ba474b9083496e5d27b69488fada1b53e3e4 /include/llvm/Target
parente717713547f1b1b61315cf1bed775ede3d231a4e (diff)
downloadllvm-f0f85eab0469ac93f9bb6c7d19aca2c35868d83a.tar.gz
llvm-f0f85eab0469ac93f9bb6c7d19aca2c35868d83a.tar.bz2
llvm-f0f85eab0469ac93f9bb6c7d19aca2c35868d83a.tar.xz
Added posix function gettimeofday to LibFunc::Func for all platforms but Windows.
*NOTE* In a recent version of posix, they added the restrict keyword to the arguments for this function. From some spelunking it seems that on some platforms, the call has restrict on its arguments and others it does not. Thus I left off the restrict keyword from the function prototype in the comment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLibraryInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLibraryInfo.h b/include/llvm/Target/TargetLibraryInfo.h
index 4b9c0442dc..dc80e4001f 100644
--- a/include/llvm/Target/TargetLibraryInfo.h
+++ b/include/llvm/Target/TargetLibraryInfo.h
@@ -308,6 +308,8 @@ namespace llvm {
getpwnam,
/// char *gets(char *s);
gets,
+ /// int gettimeofday(struct timeval *tp, void *tzp);
+ gettimeofday,
/// uint32_t htonl(uint32_t hostlong);
htonl,
/// uint16_t htons(uint16_t hostshort);