From: Craig Topper Date: Wed, 30 Dec 2015 06:00:24 +0000 (+0000) Subject: [TableGen] Remove unnecessary conversion from StringRef to std::string when outputtin... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=db4180cc21785a80429eec8e26c6cdd8599327e9;p=oota-llvm.git [TableGen] Remove unnecessary conversion from StringRef to std::string when outputting to a raw_ostream. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256628 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/AsmMatcherEmitter.cpp b/utils/TableGen/AsmMatcherEmitter.cpp index 08c540ddcd1..4177388840b 100644 --- a/utils/TableGen/AsmMatcherEmitter.cpp +++ b/utils/TableGen/AsmMatcherEmitter.cpp @@ -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; }