[llvm] r256628 - [TableGen] Remove unnecessary conversion from StringRef to std::string when outputting to a raw_ostream. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 29 22:00:25 PST 2015
Author: ctopper
Date: Wed Dec 30 00:00:24 2015
New Revision: 256628
URL: http://llvm.org/viewvc/llvm-project?rev=256628&view=rev
Log:
[TableGen] Remove unnecessary conversion from StringRef to std::string when outputting to a raw_ostream. NFC
Modified:
llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
Modified: llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp?rev=256628&r1=256627&r2=256628&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmMatcherEmitter.cpp Wed Dec 30 00:00:24 2015
@@ -2132,7 +2132,7 @@ static void emitIsSubclass(CodeGenTarget
// 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
OS << "\n case " << A.Name << ":\n";
if (SuperClasses.size() == 1) {
- OS << " return B == " << SuperClasses.back().str() << ";\n";
+ OS << " return B == " << SuperClasses.back() << ";\n";
continue;
}
More information about the llvm-commits
mailing list