diff --git a/lib/Analysis/IPA/CallGraph.cpp b/lib/Analysis/IPA/CallGraph.cpp index 7c0deddc3a1..5ee3d3cfa93 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::iterator I = std::lower_bound(Funcs.begin(), Funcs.end(), Name);