summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-10-12 15:49:06 +0000
committerRui Ueyama <ruiu@google.com>2015-10-12 15:49:06 +0000
commit1c42afcbdce1421aab216ab48e9bdac73c1f1a0b (patch)
treedacbd107a05174948db8d98c9f1b5ba8e041fecd /lld/ELF/LinkerScript.cpp
parent361d8b9350bb9fc2708df67f3543781ddccbec43 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud