]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LVU: include dwarf2dbg.h for dwarf2_emit_insn
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 13 Jul 2017 12:20:28 +0000 (09:20 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 13 Jul 2017 12:20:28 +0000 (09:20 -0300)
Nick Clifton pointed out that dwarf2dbg.h is not always included.
It depends on the target.  Since it already checks what the debug
info type is, we can just call dwarf2_emit_insn: it is always
linked in too.

gas/read.c
gas/subsegs.c

index 37a03a61f8d490a0a6498e28272122e7e15138fc..629e1a017ad7843ad7f6e06fc8c68440cd5845a2 100644 (file)
@@ -37,6 +37,7 @@
 #include "macro.h"
 #include "obstack.h"
 #include "ecoff.h"
+#include "dwarf2dbg.h"
 #include "dw2gencfi.h"
 #include "wchar.h"
 
index bb961425be40de8ad4d37ee5f51fdb0c34b15b95..76e3c6b8584689b23bdd521c6a517fde80f9921a 100644 (file)
@@ -25,6 +25,8 @@
 #include "subsegs.h"
 #include "obstack.h"
 
+#include "dwarf2dbg.h"
+
 frchainS *frchain_now;
 
 static struct obstack frchains;