summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-09 04:10:41 +0000
committerChris Lattner <sabre@nondot.org>2003-11-09 04:10:41 +0000
commitcda2347bcdf4f5eee1101a06f472538f3d8270e2 (patch)
treeb9dcecd7b8c39d679ec8589d8ad343460060977a /lib
parent4d728e867acbb54c2d4b70a39296f36dfc56a888 (diff)
downloadllvm-cda2347bcdf4f5eee1101a06f472538f3d8270e2.tar.gz
llvm-cda2347bcdf4f5eee1101a06f472538f3d8270e2.tar.bz2
llvm-cda2347bcdf4f5eee1101a06f472538f3d8270e2.tar.xz
Add more functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/IPA/CallGraph.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp
index 5ee3d3cfa9..200e81fa26 100644
--- a/lib/Analysis/IPA/CallGraph.cpp
+++ b/lib/Analysis/IPA/CallGraph.cpp
@@ -126,6 +126,12 @@ static const char * const KnownExternalFunctions[] = {
"__strtod_l",
"__strtold_l",
+ // Math functions
+ "exp", "sqrt", "cbrt", "hypot",
+ "log", "log10", "pow",
+ "sin", "cos", "tan",
+ "asin", "acos", "atan", "atan2",
+
// Locale functions
"__uselocale",
"__newlocale",
@@ -143,6 +149,8 @@ static const char * const KnownExternalFunctions[] = {
// Random stuff
"__assert_fail",
"__errno_location",
+ "clock", "time",
+ "__main",
};