[llvm] f7649f2 - [llvm-objcopy][MachO] Make isValidMachOCannonicalName static
Alexander Shaposhnikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 09:38:13 PST 2020
Author: Alexander Shaposhnikov
Date: 2020-11-04T09:37:29-08:00
New Revision: f7649f2d131fefe23d53cc87bf7a06c1a417de3b
URL: https://github.com/llvm/llvm-project/commit/f7649f2d131fefe23d53cc87bf7a06c1a417de3b
DIFF: https://github.com/llvm/llvm-project/commit/f7649f2d131fefe23d53cc87bf7a06c1a417de3b.diff
LOG: [llvm-objcopy][MachO] Make isValidMachOCannonicalName static
This diff makes the function isValidMachOCannonicalName static.
NFC.
Test plan: make check-all
Added:
Modified:
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp b/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
index 1394339b27d6..469dc6f7dde6 100644
--- a/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
+++ b/llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
@@ -305,7 +305,7 @@ static Error addSection(StringRef SecName, StringRef Filename, Object &Obj) {
// isValidMachOCannonicalName returns success if Name is a MachO cannonical name
// ("<segment>,<section>") and lengths of both segment and section names are
// valid.
-Error isValidMachOCannonicalName(StringRef Name) {
+static Error isValidMachOCannonicalName(StringRef Name) {
if (Name.count(',') != 1)
return createStringError(errc::invalid_argument,
"invalid section name '%s' (should be formatted "
More information about the llvm-commits
mailing list