mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[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
578ed69983
commit
a7067f89ea
@ -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
Block a user