[PATCH] D54193: [llvm-strip] Check "strip" with StringRef::contains instead of ends_with
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 19:04:47 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL346292: [llvm-strip] Check "strip" with StringRef::contains instead of ends_with (authored by MaskRay, committed by ).
Repository:
rL LLVM
https://reviews.llvm.org/D54193
Files:
llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
Index: llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
===================================================================
--- llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
+++ llvm/trunk/tools/llvm-objcopy/llvm-objcopy.cpp
@@ -219,7 +219,7 @@
InitLLVM X(argc, argv);
ToolName = argv[0];
DriverConfig DriverConfig;
- if (sys::path::stem(ToolName).endswith_lower("strip"))
+ if (sys::path::stem(ToolName).contains("strip"))
DriverConfig = parseStripOptions(makeArrayRef(argv + 1, argc));
else
DriverConfig = parseObjcopyOptions(makeArrayRef(argv + 1, argc));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54193.172893.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181107/4a12f52d/attachment.bin>
More information about the llvm-commits
mailing list