r259310 - No need to use utostr when putting integers into a raw_ostream. NFC

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 30 16:20:26 PST 2016


Author: ctopper
Date: Sat Jan 30 18:20:26 2016
New Revision: 259310

URL: http://llvm.org/viewvc/llvm-project?rev=259310&view=rev
Log:
No need to use utostr when putting integers into a raw_ostream. NFC

Modified:
    cfe/trunk/utils/TableGen/NeonEmitter.cpp

Modified: cfe/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/NeonEmitter.cpp?rev=259310&r1=259309&r2=259310&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/NeonEmitter.cpp Sat Jan 30 18:20:26 2016
@@ -1195,12 +1195,12 @@ void Intrinsic::emitReverseVariable(Vari
     emitNewLine();
 
     for (unsigned K = 0; K < Dest.getType().getNumVectors(); ++K) {
-      OS << "  " << Dest.getName() << ".val[" << utostr(K) << "] = "
+      OS << "  " << Dest.getName() << ".val[" << K << "] = "
          << "__builtin_shufflevector("
-         << Src.getName() << ".val[" << utostr(K) << "], "
-         << Src.getName() << ".val[" << utostr(K) << "]";
+         << Src.getName() << ".val[" << K << "], "
+         << Src.getName() << ".val[" << K << "]";
       for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J)
-        OS << ", " << utostr(J);
+        OS << ", " << J;
       OS << ");";
       emitNewLine();
     }
@@ -1208,7 +1208,7 @@ void Intrinsic::emitReverseVariable(Vari
     OS << "  " << Dest.getName()
        << " = __builtin_shufflevector(" << Src.getName() << ", " << Src.getName();
     for (int J = Dest.getType().getNumElements() - 1; J >= 0; --J)
-      OS << ", " << utostr(J);
+      OS << ", " << J;
     OS << ");";
     emitNewLine();
   }




More information about the cfe-commits mailing list