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 | 5011b956a971d29c81069669c9bf4a86d37988e8 (patch) | |
| tree | 041623b177f9b54c02b2fde351b71c851d6e2c29 /llvm/lib | |
| parent | cff83a2f242f686503a4e54df00aed3f0fa321ca (diff) | |
| download | bcm5719-llvm-5011b956a971d29c81069669c9bf4a86d37988e8.tar.gz bcm5719-llvm-5011b956a971d29c81069669c9bf4a86d37988e8.zip | |
None of the __llvm_* functions call into the program. This makes the
callgraph MUCH simpler for eh using program.
llvm-svn: 9825
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/IPA/CallGraph.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp index 7c0deddc3a1..5ee3d3cfa93 100644 --- a/llvm/lib/Analysis/IPA/CallGraph.cpp +++ b/llvm/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); |

