diff options
| author | Craig Topper <craig.topper@gmail.com> | 2017-05-28 18:24:35 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2017-05-28 18:24:35 +0000 |
| commit | 8eaf0edb410cac3fc29e528d8dcd40eff8c7f5fb (patch) | |
| tree | c5126f253075806fdcecf26260fc17a31aa94bea /llvm/utils/TableGen/X86FoldTablesEmitter.cpp | |
| parent | f62d4e240da840d9fa5092d336279f42763e5a8d (diff) | |
| download | bcm5719-llvm-8eaf0edb410cac3fc29e528d8dcd40eff8c7f5fb.tar.gz bcm5719-llvm-8eaf0edb410cac3fc29e528d8dcd40eff8c7f5fb.zip | |
[TableGen][X86] Remove unnecessary std::string creations. NFC
llvm-svn: 304096
Diffstat (limited to 'llvm/utils/TableGen/X86FoldTablesEmitter.cpp')
| -rw-r--r-- | llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index ca9d2cdf5fa..1495b0b28a6 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -162,8 +162,8 @@ class X86FoldTablesEmitter { friend raw_ostream &operator<<(raw_ostream &OS, const X86FoldTableEntry &E) { - OS << "{ X86::" << E.RegInst->TheDef->getName().str() - << ", X86::" << E.MemInst->TheDef->getName().str() << ", "; + OS << "{ X86::" << E.RegInst->TheDef->getName() + << ", X86::" << E.MemInst->TheDef->getName() << ", "; if (E.IsLoad) OS << "TB_FOLDED_LOAD | "; @@ -172,7 +172,7 @@ class X86FoldTablesEmitter { if (E.CannotUnfold) OS << "TB_NO_REVERSE | "; if (E.IsAligned) - OS << "TB_ALIGN_" + std::to_string(E.Alignment) + " | "; + OS << "TB_ALIGN_" << E.Alignment << " | "; OS << "0 },\n"; @@ -645,7 +645,7 @@ void X86FoldTablesEmitter::run(raw_ostream &OS) { // class ptr_rc_tailcall, which can be of a size 32 or 64, to ensure // safe mapping of these instruction we manually map them and exclude // them from the automation. - if (find(NoFoldSet, Rec->getName().str()) != std::end(NoFoldSet) || + if (find(NoFoldSet, Rec->getName()) != std::end(NoFoldSet) || hasRSTRegClass(Inst) || hasPtrTailcallRegClass(Inst)) continue; |

