diff options
author | Rui Ueyama <ruiu@google.com> | 2015-10-12 15:49:06 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2015-10-12 15:49:06 +0000 |
commit | 1c42afcbdce1421aab216ab48e9bdac73c1f1a0b (patch) | |
tree | dacbd107a05174948db8d98c9f1b5ba8e041fecd /lld/ELF/LinkerScript.cpp | |
parent | 361d8b9350bb9fc2708df67f3543781ddccbec43 (diff) | |
download | bcm5719-llvm-1c42afcbdce1421aab216ab48e9bdac73c1f1a0b.tar.gz bcm5719-llvm-1c42afcbdce1421aab216ab48e9bdac73c1f1a0b.zip |
Remove explicit Twine instantiation if possible.
llvm-svn: 250055
Diffstat (limited to 'lld/ELF/LinkerScript.cpp')
-rw-r--r-- | lld/ELF/LinkerScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index 933b6becb32..f255da3527f 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp @@ -192,7 +192,7 @@ void LinkerScript::readGroup() { void LinkerScript::readInclude() { StringRef Tok = next(); auto MBOrErr = MemoryBuffer::getFile(Tok); - error(MBOrErr, Twine("cannot open ") + Tok); + error(MBOrErr, "cannot open " + Tok); std::unique_ptr<MemoryBuffer> &MB = *MBOrErr; StringRef S = Saver.save(MB->getMemBufferRef().getBuffer()); std::vector<StringRef> V = tokenize(S); |