mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 18:55:48 +00:00
[llvm-objcopy][NFC] rename variable.
This commit is contained in:
parent
2f251925db
commit
34e2df21fd
@ -138,10 +138,10 @@ static Error executeObjcopyOnRawBinary(ConfigManager &ConfigMgr,
|
|||||||
static Error executeObjcopy(ConfigManager &ConfigMgr) {
|
static Error executeObjcopy(ConfigManager &ConfigMgr) {
|
||||||
CommonConfig &Config = ConfigMgr.Common;
|
CommonConfig &Config = ConfigMgr.Common;
|
||||||
|
|
||||||
Expected<FilePermissionsApplier> PermsCarrier =
|
Expected<FilePermissionsApplier> PermsApplierOrErr =
|
||||||
FilePermissionsApplier::create(Config.InputFilename);
|
FilePermissionsApplier::create(Config.InputFilename);
|
||||||
if (!PermsCarrier)
|
if (!PermsApplierOrErr)
|
||||||
return PermsCarrier.takeError();
|
return PermsApplierOrErr.takeError();
|
||||||
|
|
||||||
std::function<Error(raw_ostream & OutFile)> ObjcopyFunc;
|
std::function<Error(raw_ostream & OutFile)> ObjcopyFunc;
|
||||||
|
|
||||||
@ -211,12 +211,13 @@ static Error executeObjcopy(ConfigManager &ConfigMgr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Error E =
|
if (Error E =
|
||||||
PermsCarrier->apply(Config.OutputFilename, Config.PreserveDates))
|
PermsApplierOrErr->apply(Config.OutputFilename, Config.PreserveDates))
|
||||||
return E;
|
return E;
|
||||||
|
|
||||||
if (!Config.SplitDWO.empty())
|
if (!Config.SplitDWO.empty())
|
||||||
if (Error E = PermsCarrier->apply(Config.SplitDWO, Config.PreserveDates,
|
if (Error E =
|
||||||
static_cast<sys::fs::perms>(0666)))
|
PermsApplierOrErr->apply(Config.SplitDWO, Config.PreserveDates,
|
||||||
|
static_cast<sys::fs::perms>(0666)))
|
||||||
return E;
|
return E;
|
||||||
|
|
||||||
return Error::success();
|
return Error::success();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user