[llvm-commits] CVS: llvm/lib/VMCore/AutoUpgrade.cpp

Jim Laskey jlaskey at apple.com
Mon Mar 13 18:00:47 PST 2006



Changes in directory llvm/lib/VMCore:

AutoUpgrade.cpp updated: 1.12 -> 1.13
---
Log message:

1. Handle removal of all arguments for a morphed intrinsic.
2. Remove the declaration of llvm.dbg.declare.


---
Diffs of the changes:  (+4 -1)

 AutoUpgrade.cpp |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/lib/VMCore/AutoUpgrade.cpp
diff -u llvm/lib/VMCore/AutoUpgrade.cpp:1.12 llvm/lib/VMCore/AutoUpgrade.cpp:1.13
--- llvm/lib/VMCore/AutoUpgrade.cpp:1.12	Mon Mar 13 07:07:37 2006
+++ llvm/lib/VMCore/AutoUpgrade.cpp	Mon Mar 13 20:00:35 2006
@@ -97,6 +97,9 @@
       if (F->getReturnType() != Type::VoidTy) {
         return M->getOrInsertFunction(Name, Type::VoidTy, NULL);
       }
+    } else if (Name == "llvm.dbg.declare") {
+      F->setName("");
+      return NULL;
     }
     break;
   case 'i':
@@ -230,7 +233,7 @@
       } else
         Oprnds.push_back(UndefValue::get(NewFnTy->getParamType(i)));
     }
-  } else {
+  } else if (N) {
     assert(N == (CI->getNumOperands() - 1) &&
            "Upgraded function needs permutation");
     for (unsigned i = 0; i != N; ++i) {






More information about the llvm-commits mailing list