aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/InterfaceStub
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
committerKazu Hirata <kazu@google.com>2022-06-18 23:07:11 -0700
commit129b531c9c67fc50ef9dcb7d28d7081546213ac1 (patch)
treea8b4769c0d461caddac853ce26db0058acc710df /llvm/lib/InterfaceStub
parent1e556f459b44dd0ca4073e932f66ecb6f40fe31a (diff)
downloadllvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.zip
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.gz
llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.bz2
[llvm] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/InterfaceStub')
-rw-r--r--llvm/lib/InterfaceStub/ELFObjHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/InterfaceStub/ELFObjHandler.cpp b/llvm/lib/InterfaceStub/ELFObjHandler.cpp
index 55d06cd..33dc529 100644
--- a/llvm/lib/InterfaceStub/ELFObjHandler.cpp
+++ b/llvm/lib/InterfaceStub/ELFObjHandler.cpp
@@ -217,7 +217,7 @@ public:
// time as long as it is not SHN_UNDEF. Set shndx to 1, which
// points to ".dynsym".
uint16_t Shndx = Sym.Undefined ? SHN_UNDEF : 1;
- uint64_t Size = Sym.Size.getValueOr(0);
+ uint64_t Size = Sym.Size.value_or(0);
DynSym.Content.add(DynStr.Content.getOffset(Sym.Name), Size, Bind,
convertIFSSymbolTypeToELF(Sym.Type), 0, Shndx);
}