From: Martin Storsjo Date: Thu, 29 Aug 2019 08:59:05 +0000 (+0000) Subject: [llvm-readobj] Remove a leftover string trim operation. NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9520c04dce2f2d7473e5c47aa5a861a4970f633b;p=llvm [llvm-readobj] Remove a leftover string trim operation. NFC. This became unnecessary in SVN r359153. Differential Revision: https://reviews.llvm.org/D66815 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370307 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-readobj/COFFDumper.cpp b/tools/llvm-readobj/COFFDumper.cpp index 07843ae84b3..6b5564aebfc 100644 --- a/tools/llvm-readobj/COFFDumper.cpp +++ b/tools/llvm-readobj/COFFDumper.cpp @@ -1844,7 +1844,6 @@ void COFFDumper::printResourceDirectoryTable( if (Level == "Type") { OS << ": "; printResourceTypeName(Entry.Identifier.ID, OS); - IDStr = IDStr.slice(0, IDStr.find_first_of(")", 0) + 1); } else { OS << ": (ID " << Entry.Identifier.ID << ")"; }