summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLibraryInfo.cpp
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
commitf7459c740b623c98e11b586a8034cd7b01df8e1b (patch)
treed6184a93090e881bd8698e1769a35b0336579ed7 /llvm/lib/Target/TargetLibraryInfo.cpp
parentf94eb2bb26bc11a95bc4d8ba37accebcd788ebd8 (diff)
downloadbcm5719-llvm-f7459c740b623c98e11b586a8034cd7b01df8e1b.tar.gz
bcm5719-llvm-f7459c740b623c98e11b586a8034cd7b01df8e1b.zip
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. llvm-svn: 185501
Diffstat (limited to 'llvm/lib/Target/TargetLibraryInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetLibraryInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLibraryInfo.cpp b/llvm/lib/Target/TargetLibraryInfo.cpp
index d2967d929d8..99fff59535d 100644
--- a/llvm/lib/Target/TargetLibraryInfo.cpp
+++ b/llvm/lib/Target/TargetLibraryInfo.cpp
@@ -168,6 +168,7 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"getlogin_r",
"getpwnam",
"gets",
+ "gettimeofday",
"htonl",
"htons",
"iprintf",
@@ -490,6 +491,7 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T,
TLI.setUnavailable(LibFunc::getitimer);
TLI.setUnavailable(LibFunc::getlogin_r);
TLI.setUnavailable(LibFunc::getpwnam);
+ TLI.setUnavailable(LibFunc::gettimeofday);
TLI.setUnavailable(LibFunc::htonl);
TLI.setUnavailable(LibFunc::htons);
TLI.setUnavailable(LibFunc::lchown);
OpenPOWER on IntegriCloud