[lld] r336435 - [ELF] - Remove dead code. NFC.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 6 06:23:49 PDT 2018
Author: grimar
Date: Fri Jul 6 06:23:49 2018
New Revision: 336435
URL: http://llvm.org/viewvc/llvm-project?rev=336435&view=rev
Log:
[ELF] - Remove dead code. NFC.
'Pos' can never be 0.
Modified:
lld/trunk/ELF/ScriptLexer.cpp
Modified: lld/trunk/ELF/ScriptLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ScriptLexer.cpp?rev=336435&r1=336434&r2=336435&view=diff
==============================================================================
--- lld/trunk/ELF/ScriptLexer.cpp (original)
+++ lld/trunk/ELF/ScriptLexer.cpp Fri Jul 6 06:23:49 2018
@@ -66,8 +66,6 @@ size_t ScriptLexer::getColumnNumber() {
std::string ScriptLexer::getCurrentLocation() {
std::string Filename = getCurrentMB().getBufferIdentifier();
- if (!Pos)
- return Filename;
return (Filename + ":" + Twine(getLineNumber())).str();
}
More information about the llvm-commits
mailing list