Rename the new unsigned and signed keywords to nuw and nsw,
[oota-llvm.git] / lib / VMCore / AsmWriter.cpp
index 6e84af3211c4061343607ba4e14cb3f5188fdf7b..d9d8cc834d544c961ea304b1c2eb70c25fa777d5 100644 (file)
@@ -856,9 +856,9 @@ static void WriteOptimizationInfo(raw_ostream &Out, const User *U) {
   if (const OverflowingBinaryOperator *OBO =
         dyn_cast<OverflowingBinaryOperator>(U)) {
     if (OBO->hasNoUnsignedOverflow())
-      Out << "unsigned ";
+      Out << "nuw ";
     if (OBO->hasNoSignedOverflow())
-      Out << "signed ";
+      Out << "nsw ";
   } else if (const SDivOperator *Div = dyn_cast<SDivOperator>(U)) {
     if (Div->isExact())
       Out << "exact ";