[TableGen] Remove unnecessary conversion from StringRef to std::string when outputting to a raw_ostream. NFC

llvm-svn: 256628
This commit is contained in:
Craig Topper 2015-12-30 06:00:24 +00:00
parent 39311c7ed5
commit 13b2a4e35d
1 changed files with 2 additions and 2 deletions

View 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;
}