Check in to use moved stringizing code

llvm-svn: 1024
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp
index 575355d..9d9cba1 100644
--- a/llvm/lib/Target/Sparc/EmitAssembly.cpp
+++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp
@@ -399,8 +399,16 @@
   Out << valID << ":" << endl;
   
   Out << "\t"
-      << TypeToDataDirective(CV->getType()) << "\t"
-      << CV->getStrValue(true) << endl;
+      << TypeToDataDirective(CV->getType()) << "\t";
+
+  if (ConstPoolArray *CPA = dyn_cast<ConstPoolArray>(CV)) {
+    if (isStringCompatible(CPA))
+      Out << getAsCString(CPA) << endl;
+    else
+      Out << CV->getStrValue() << endl;  // TODO: This is broken
+  } else {
+    Out << CV->getStrValue() << endl;    // TODO: this is broken
+  }
   
   Out << "\t.type" << "\t" << valID << ",#object" << endl;
   Out << "\t.size" << "\t" << valID << ","