diff options
Diffstat (limited to 'lld/COFF')
-rw-r--r-- | lld/COFF/ModuleDef.cpp | 10 | ||||
-rw-r--r-- | lld/COFF/SymbolTable.cpp | 4 | ||||
-rw-r--r-- | lld/COFF/Symbols.cpp | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/lld/COFF/ModuleDef.cpp b/lld/COFF/ModuleDef.cpp index acb9fefa906..5e393f45d18 100644 --- a/lld/COFF/ModuleDef.cpp +++ b/lld/COFF/ModuleDef.cpp @@ -177,7 +177,7 @@ private: parseVersion(&Config->MajorImageVersion, &Config->MinorImageVersion); return; default: - fatal(Twine("unknown directive: ") + Tok.Value); + fatal("unknown directive: " + Tok.Value); } } @@ -188,7 +188,7 @@ private: if (Tok.K == Equal) { read(); if (Tok.K != Identifier) - fatal(Twine("identifier expected, but got ") + Tok.Value); + fatal("identifier expected, but got " + Tok.Value); E.ExtName = E.Name; E.Name = Tok.Value; } else { @@ -264,15 +264,15 @@ private: void parseVersion(uint32_t *Major, uint32_t *Minor) { read(); if (Tok.K != Identifier) - fatal(Twine("identifier expected, but got ") + Tok.Value); + fatal("identifier expected, but got " + Tok.Value); StringRef V1, V2; std::tie(V1, V2) = Tok.Value.split('.'); if (V1.getAsInteger(10, *Major)) - fatal(Twine("integer expected, but got ") + Tok.Value); + fatal("integer expected, but got " + Tok.Value); if (V2.empty()) *Minor = 0; else if (V2.getAsInteger(10, *Minor)) - fatal(Twine("integer expected, but got ") + Tok.Value); + fatal("integer expected, but got " + Tok.Value); } Lexer Lex; diff --git a/lld/COFF/SymbolTable.cpp b/lld/COFF/SymbolTable.cpp index 3e8c112e768..ef4559bd8f4 100644 --- a/lld/COFF/SymbolTable.cpp +++ b/lld/COFF/SymbolTable.cpp @@ -211,7 +211,7 @@ void SymbolTable::addSymbol(SymbolBody *New) { // equivalent (conflicting), or more preferable, respectively. int Comp = Existing->compare(New); if (Comp == 0) - fatal(Twine("duplicate symbol: ") + Existing->getDebugName() + " and " + + fatal("duplicate symbol: " + Existing->getDebugName() + " and " + New->getDebugName()); if (Comp < 0) Sym->Body = New; @@ -356,7 +356,7 @@ void SymbolTable::addCombinedLTOObject(ObjectFile *Obj) { int Comp = Existing->compare(Body); if (Comp == 0) - fatal(Twine("LTO: unexpected duplicate symbol: ") + Name); + fatal("LTO: unexpected duplicate symbol: " + Name); if (Comp < 0) Sym->Body = Body; } diff --git a/lld/COFF/Symbols.cpp b/lld/COFF/Symbols.cpp index a08e1d3e816..c725688d527 100644 --- a/lld/COFF/Symbols.cpp +++ b/lld/COFF/Symbols.cpp @@ -199,7 +199,7 @@ std::unique_ptr<InputFile> Lazy::getMember() { else if (Magic == file_magic::bitcode) Obj.reset(new BitcodeFile(MBRef)); else - fatal(Twine(File->getName()) + ": unknown file type"); + fatal(File->getName() + ": unknown file type"); Obj->setParentName(File->getName()); return Obj; |