Changes in directory llvm/lib/Transforms/IPO:

IndMemRemoval.cpp updated: 1.1 -> 1.2
---
Log message:

linear -> constant time

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

 IndMemRemoval.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/lib/Transforms/IPO/IndMemRemoval.cpp
diff -u llvm/lib/Transforms/IPO/IndMemRemoval.cpp:1.1 
llvm/lib/Transforms/IPO/IndMemRemoval.cpp:1.2
--- llvm/lib/Transforms/IPO/IndMemRemoval.cpp:1.1       Mon Apr 10 14:25:59 2006
+++ llvm/lib/Transforms/IPO/IndMemRemoval.cpp   Thu Apr 13 08:43:31 2006
@@ -51,11 +51,11 @@
   //to intrinsics.  Therefor, this goes through and finds where the
   //address of free or malloc are taken and replaces those with bounce
   //functions, ensuring that all malloc and free that might happen
-  //happens through intrinsics.
+  //happen through intrinsics.
   bool changed = false;
   if (Function* F = M.getNamedFunction("free")) {
     assert(F->isExternal() && "free not external?");
-    if (F->getNumUses()) {
+    if (!F->use_empty()) {
       Function* FN = new Function(F->getFunctionType(), 
                                  GlobalValue::LinkOnceLinkage, 
                                  "free_llvm_bounce", &M);
@@ -70,7 +70,7 @@
   }
   if (Function* F = M.getNamedFunction("malloc")) {
     assert(F->isExternal() && "malloc not external?");
-    if (F->getNumUses()) {
+    if (!F->use_empty()) {
       Function* FN = new Function(F->getFunctionType(), 
                                  GlobalValue::LinkOnceLinkage, 
                                  "malloc_llvm_bounce", &M);



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to