From 5011b956a971d29c81069669c9bf4a86d37988e8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 9 Nov 2003 04:00:59 +0000 Subject: [PATCH] None of the __llvm_* functions call into the program. This makes the callgraph MUCH simpler for eh using program. llvm-svn: 9825 --- llvm/lib/Analysis/IPA/CallGraph.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp index 7c0deddc3a16..5ee3d3cfa935 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::iterator I = std::lower_bound(Funcs.begin(), Funcs.end(), Name); -- GitLab