diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-18 23:07:11 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-18 23:07:11 -0700 |
commit | 129b531c9c67fc50ef9dcb7d28d7081546213ac1 (patch) | |
tree | a8b4769c0d461caddac853ce26db0058acc710df /llvm/lib/MC/MCDwarf.cpp | |
parent | 1e556f459b44dd0ca4073e932f66ecb6f40fe31a (diff) | |
download | llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.zip llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.gz llvm-129b531c9c67fc50ef9dcb7d28d7081546213ac1.tar.bz2 |
[llvm] Use value_or instead of getValueOr (NFC)
Diffstat (limited to 'llvm/lib/MC/MCDwarf.cpp')
-rw-r--r-- | llvm/lib/MC/MCDwarf.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/MC/MCDwarf.cpp b/llvm/lib/MC/MCDwarf.cpp index d151b8b..db38c28 100644 --- a/llvm/lib/MC/MCDwarf.cpp +++ b/llvm/lib/MC/MCDwarf.cpp @@ -397,11 +397,10 @@ static void emitOneV5FileEntry(MCStreamer *MCOS, const MCDwarfFile &DwarfFile, } if (HasSource) { if (LineStr) - LineStr->emitRef(MCOS, DwarfFile.Source.getValueOr(StringRef())); + LineStr->emitRef(MCOS, DwarfFile.Source.value_or(StringRef())); else { - MCOS->emitBytes( - DwarfFile.Source.getValueOr(StringRef())); // Source and... - MCOS->emitBytes(StringRef("\0", 1)); // its null terminator. + MCOS->emitBytes(DwarfFile.Source.value_or(StringRef())); // Source and... + MCOS->emitBytes(StringRef("\0", 1)); // its null terminator. } } } |