[TableGen] Remove unnecessary conversion from StringRef to std::string when outputtin...
authorCraig Topper <craig.topper@gmail.com>
Wed, 30 Dec 2015 06:00:24 +0000 (06:00 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 30 Dec 2015 06:00:24 +0000 (06:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256628 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/AsmMatcherEmitter.cpp

index 08c540d..4177388 100644 (file)
@@ -2132,7 +2132,7 @@ static void emitIsSubclass(CodeGenTarget &Target,
 
     // If this is the first SuperClass, emit the switch header.
     if (!EmittedSwitch) {
-      OS << "  switch (A) {\n"
+      OS << "  switch (A) {\n";
       OS << "  default:\n";
       OS << "    return false;\n";
       EmittedSwitch = true;
@@ -2141,7 +2141,7 @@ static void emitIsSubclass(CodeGenTarget &Target,
     OS << "\n  case " << A.Name << ":\n";
 
     if (SuperClasses.size() == 1) {
-      OS << "    return B == " << SuperClasses.back().str() << ";\n";
+      OS << "    return B == " << SuperClasses.back() << ";\n";
       continue;
     }