Remove debugging info
[oota-llvm.git] / lib / VMCore / ConstPoolVals.cpp
index e8d4f679fa4ba4f65f5a32b51be6325178e8ffab..3b8fe10f46f02c226a86637f8362b762db101985 100644 (file)
@@ -168,12 +168,15 @@ string ConstPoolArray::getStrValue() const {
   // 
   const Type *ETy = cast<ArrayType>(getType())->getElementType();
   bool isString = (ETy == Type::SByteTy || ETy == Type::UByteTy);
-  for (unsigned i = 0; i < Operands.size(); ++i)
-    if (ETy == Type::SByteTy &&
-        cast<ConstPoolSInt>(Operands[i])->getValue() < 0) {
-      isString = false;
-      break;
-    }
+
+  if (ETy == Type::SByteTy) {
+    for (unsigned i = 0; i < Operands.size(); ++i)
+      if (ETy == Type::SByteTy &&
+          cast<ConstPoolSInt>(Operands[i])->getValue() < 0) {
+        isString = false;
+        break;
+      }
+  }
 
   if (isString) {
     Result = "c\"";
@@ -199,7 +202,7 @@ string ConstPoolArray::getStrValue() const {
                " " + cast<ConstPoolVal>(Operands[0])->getStrValue();
       for (unsigned i = 1; i < Operands.size(); i++)
         Result += ", " + Operands[i]->getType()->getDescription() + 
-                  " " + cast<ConstPoolVal>(Operands[i])->getStrValue();
+                  " " + cast<ConstPoolVal>(Operands[i])->getStrValue();
     }
     Result += " ]";
   }
@@ -214,7 +217,7 @@ string ConstPoolStruct::getStrValue() const {
              " " + cast<ConstPoolVal>(Operands[0])->getStrValue();
     for (unsigned i = 1; i < Operands.size(); i++)
       Result += ", " + Operands[i]->getType()->getDescription() + 
-                " " + cast<ConstPoolVal>(Operands[i])->getStrValue();
+               " " + cast<ConstPoolVal>(Operands[i])->getStrValue();
   }
 
   return Result + " }";