git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370892
91177308-0d34-0410-b5e6-
96231b3b80d8
for (auto Arg : InputArgs.filtered(OBJCOPY_add_symbol)) {
Expected<NewSymbolInfo> NSI = parseNewSymbolInfo(
Arg->getValue(),
- Config.NewSymbolVisibility.getValueOr(ELF::STV_DEFAULT));
+ Config.NewSymbolVisibility.getValueOr((uint8_t)ELF::STV_DEFAULT));
if (!NSI)
return NSI.takeError();
Config.SymbolsToAdd.push_back(*NSI);
Error executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In,
Buffer &Out) {
uint8_t NewSymbolVisibility =
- Config.NewSymbolVisibility.getValueOr(ELF::STV_DEFAULT);
+ Config.NewSymbolVisibility.getValueOr((uint8_t)ELF::STV_DEFAULT);
BinaryReader Reader(Config.BinaryArch, &In, NewSymbolVisibility);
std::unique_ptr<Object> Obj = Reader.create();