]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/dwarf2/die.h
gdb: Replace gdb::optional with std::optional
[thirdparty/binutils-gdb.git] / gdb / dwarf2 / die.h
index cdee46996d6a34221b4923df4b9181dd6ece69f1..c7040776b077d27275a2beade7cd558494a217ca 100644 (file)
@@ -59,7 +59,7 @@ struct die_info
   /* Return the address base of the compile unit, which, if exists, is
      stored either at the attribute DW_AT_GNU_addr_base, or
      DW_AT_addr_base.  */
-  gdb::optional<ULONGEST> addr_base ()
+  std::optional<ULONGEST> addr_base ()
   {
     for (unsigned i = 0; i < num_attrs; ++i)
       if (attrs[i].name == DW_AT_addr_base
@@ -73,7 +73,7 @@ struct die_info
          complaint (_("address base attribute (offset %s) as wrong form"),
                     sect_offset_str (sect_off));
        }
-    return gdb::optional<ULONGEST> ();
+    return std::optional<ULONGEST> ();
   }
 
   /* Return the base address of the compile unit into the .debug_ranges section,