forked from OSchip/llvm-project
[TableGen] Remove unnecessary conversion from StringRef to std::string when outputting to a raw_ostream. NFC
llvm-svn: 256628
This commit is contained in:
parent
39311c7ed5
commit
13b2a4e35d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue