simple-object.h (simple_object_copy_lto_debug_sections): Add rename parameter.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 30 May 2018 17:57:50 +0000 (19:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 30 May 2018 17:57:50 +0000 (19:57 +0200)
* simple-object.h (simple_object_copy_lto_debug_sections): Add rename
parameter.

From-SVN: r260970

include/ChangeLog
include/simple-object.h
libiberty/ChangeLog

index 7b4aaed39c1e931165531aae8fd8bd015dd433b0..7a8022b67c094b706f23341399623c4cd3ac5e1e 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-30  Jan Hubicka  <hubicka@ucw.cz>
+
+       * simple-object.h (simple_object_copy_lto_debug_sections): Add rename
+       parameter.
+
 2018-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * splay-tree.h (splay_tree_compare_strings,
index db72f86de179a82fddbfcc7789de83f4e822b2de..496d8cc107e7aaa801fabf3b762b9726f65dd59f 100644 (file)
@@ -198,12 +198,15 @@ extern void
 simple_object_release_write (simple_object_write *);
 
 /* Copy LTO debug sections from SRC_OBJECT to DEST.
+   If RENAME is true, rename LTO debug section into debug section (i.e.
+   when producing final binary) and if it is false, keep the sections with
+   original names (when incrementally linking).
    If an error occurs, return the errno value in ERR and an error string.  */
 
 extern const char *
 simple_object_copy_lto_debug_sections (simple_object_read *src_object,
                                       const char *dest,
-                                      int *err);
+                                      int *err, int rename);
 
 #ifdef __cplusplus
 }
index be3c6eea6dc1a46e422cfa46e93aa2c9bfdacf14..578da58181f5c04fae0f5d90a2d21b82ee5b2a9a 100644 (file)
@@ -1,7 +1,5 @@
 2018-05-30  Jan Hubicka  <hubicka@ucw.cz>
 
-       * simple-object.h (simple_object_copy_lto_debug_sections): Add rename
-       parameter.
        * simple-object.c (handle_lto_debug_sections): Add rename parameter.
        (handle_lto_debug_sections_rename): New function.
        (handle_lto_debug_sections_norename): New function.