mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[llvm-objcopy][MachO] Make isValidMachOCannonicalName static
This diff makes the function isValidMachOCannonicalName static. NFC. Test plan: make check-all
This commit is contained in:
parent
aff03bd34f
commit
57690ddfcb
@ -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 "
|
||||
|
Loading…
Reference in New Issue
Block a user