None of the __llvm_* functions call into the program. This makes the

callgraph MUCH simpler for eh using program.

llvm-svn: 9825
This commit is contained in:
Chris Lattner 2003-11-09 04:00:59 +00:00
parent cff83a2f24
commit 5011b956a9
1 changed files with 3 additions and 0 deletions

View File

@ -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);