Fix spellnig error
[oota-llvm.git] / lib / CodeGen / AsmPrinter.cpp
index d225dbce9fed93002fde82f69d66916f81ac9d1a..3265a99c05d28a557ae3d88860837f7aefb3fde4 100644 (file)
@@ -1074,6 +1074,11 @@ void AsmPrinter::EmitGlobalConstant(const Constant *CV, bool Packed) {
   const Type *type = CV->getType();
   printDataDirective(type);
   EmitConstantValueOnly(CV);
+  if (const ConstantInt *CI = dyn_cast<ConstantInt>(CV)) {
+    O << "\t\t\t"
+      << TAI->getCommentString()
+      << " 0x" << CI->getValue().toStringUnsigned(16);
+  }
   O << "\n";
 }