Replace xmalloc/xfree with vector in jit.c
[deliverable/binutils-gdb.git] / libiberty / simple-object-common.h
index 264b179955e3330687eb81af412f57981f6d579a..ddcefc4ee09c2bd8b96c2ffae2468edba8f9494b 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object-common.h -- common structs for object file manipulation.
-   Copyright (C) 2010 Free Software Foundation, Inc.
+   Copyright (C) 2010-2019 Free Software Foundation, Inc.
 
 This file is part of the libiberty library.
 Libiberty is free software; you can redistribute it and/or
@@ -141,6 +141,12 @@ struct simple_object_functions
 
   /* Release the private data for an simple_object_write.  */
   void (*release_write) (void *);
+
+  /* Copy LTO debug sections.  */
+  const char *(*copy_lto_debug_sections) (simple_object_read *sobj,
+                                         simple_object_write *dobj,
+                                         char *(*pfn) (const char *),
+                                         int *err);
 };
 
 /* The known object file formats.  */
@@ -148,6 +154,7 @@ struct simple_object_functions
 extern const struct simple_object_functions simple_object_coff_functions;
 extern const struct simple_object_functions simple_object_elf_functions;
 extern const struct simple_object_functions simple_object_mach_o_functions;
+extern const struct simple_object_functions simple_object_xcoff_functions;
 
 /* Read SIZE bytes from DESCRIPTOR at file offset OFFSET into BUFFER.
    Return non-zero on success.  On failure return 0 and set *ERRMSG
This page took 0.024282 seconds and 4 git commands to generate.