[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

LLVM llvm at cs.uiuc.edu
Thu May 27 19:24:01 PDT 2004


Changes in directory llvm/lib/AsmParser:

llvmAsmParser.y updated: 1.167 -> 1.168

---
Log message:

Remove some more dead code resulting from adding setTypeName().


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

Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.167 llvm/lib/AsmParser/llvmAsmParser.y:1.168
--- llvm/lib/AsmParser/llvmAsmParser.y:1.167	Thu May 27 17:05:50 2004
+++ llvm/lib/AsmParser/llvmAsmParser.y	Thu May 27 19:21:06 2004
@@ -520,11 +520,7 @@
   if (Existing) {    // Inserting a name that is already defined???
     // We are a simple redefinition of a value, check to see if it
     // is defined the same as the old one...
-    if (const Type *Ty = dyn_cast<Type>(Existing)) {
-      if (Ty == cast<Type>(V)) return true;  // Yes, it's equal.
-      // std::cerr << "Type: " << Ty->getDescription() << " != "
-      //      << cast<Type>(V)->getDescription() << "!\n";
-    } else if (const Constant *C = dyn_cast<Constant>(Existing)) {
+    if (const Constant *C = dyn_cast<Constant>(Existing)) {
       if (C == V) return true;      // Constants are equal to themselves
     } else if (GlobalVariable *EGV = dyn_cast<GlobalVariable>(Existing)) {
       // We are allowed to redefine a global variable in two circumstances:





More information about the llvm-commits mailing list