From 57690ddfcb6cc51715844f9d0c536c6274486b54 Mon Sep 17 00:00:00 2001 From: Alexander Shaposhnikov Date: Wed, 4 Nov 2020 00:30:43 -0800 Subject: [PATCH] [llvm-objcopy][MachO] Make isValidMachOCannonicalName static This diff makes the function isValidMachOCannonicalName static. NFC. Test plan: make check-all --- tools/llvm-objcopy/MachO/MachOObjcopy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-objcopy/MachO/MachOObjcopy.cpp b/tools/llvm-objcopy/MachO/MachOObjcopy.cpp index 1394339b27d..469dc6f7dde 100644 --- a/tools/llvm-objcopy/MachO/MachOObjcopy.cpp +++ b/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 // (",
") 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 "