diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-09 04:00:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-09 04:00:59 +0000 |
commit | 4d728e867acbb54c2d4b70a39296f36dfc56a888 (patch) | |
tree | e595f5130029881a0aec3b50cae3506637e6d81d /lib/Analysis/IPA/CallGraph.cpp | |
parent | 67ce57ac49da7e3ca58df573c81d91175784b433 (diff) |
None of the __llvm_* functions call into the program. This makes the
callgraph MUCH simpler for eh using program.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9825 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/CallGraph.cpp')
-rw-r--r-- | lib/Analysis/IPA/CallGraph.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 7c0deddc3a..5ee3d3cfa9 100644 --- a/lib/Analysis/IPA/CallGraph.cpp +++ b/lib/Analysis/IPA/CallGraph.cpp @@ -165,6 +165,9 @@ static bool ExternalFunctionDoesntCallIntoProgram(const std::string &Name) { std::sort(Funcs.begin(), Funcs.end()); } + if (Name.size() > 7 && !memcmp("__llvm_", Name.c_str(), 7)) + return true; + // Binary search for the function name... std::vector<std::string>::iterator I = std::lower_bound(Funcs.begin(), Funcs.end(), Name); |