[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraph.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Nov 8 22:02:01 PST 2003


Changes in directory llvm/lib/Analysis/IPA:

CallGraph.cpp updated: 1.30 -> 1.31

---
Log message:

None of the __llvm_* functions call into the program.  This makes the 
callgraph MUCH simpler for eh using program.



---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.30 llvm/lib/Analysis/IPA/CallGraph.cpp:1.31
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.30	Fri Oct 31 15:05:12 2003
+++ llvm/lib/Analysis/IPA/CallGraph.cpp	Sat Nov  8 22:00:59 2003
@@ -165,6 +165,9 @@
     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);





More information about the llvm-commits mailing list