Remove more superfluous .str() and replace std::string concatenation with Twine.
[oota-llvm.git] / lib / Target / ARM / ARMSubtarget.cpp
index e752fb056863e0cc403ba70dd4e36ae811320727..430b41028fe203942120f111f8f9bd83cba10dbd 100644 (file)
@@ -190,7 +190,7 @@ void ARMSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) {
       ARM_MC::ParseARMTriple(TargetTriple.getTriple(), CPUString);
   if (!FS.empty()) {
     if (!ArchFS.empty())
-      ArchFS = ArchFS + "," + FS.str();
+      ArchFS = (Twine(ArchFS) + "," + FS).str();
     else
       ArchFS = FS;
   }