mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
67ce57ac49
commit
4d728e867a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user