/* Warning: autogenerated, do not edit! */
#include <dwarf.h>
+#include <elfutils/libdw.h>
+#include "src/mc/mc_dwarf.hpp"
#include <xbt/base.h>
+namespace simgrid {
+namespace dwarf {
+
/** \brief Get the name of a dwarf tag (DW_TAG_*) from its code
*
* \param tag tag code (see the DWARF specification)
* \return name of the tag
*/
XBT_PRIVATE
-const char *MC_dwarf_tagname(int tag)
+const char *tagname(int tag)
{
switch (tag) {
case 0x01: return "DW_TAG_array_type";
case 0x4109: return "DW_TAG_GNU_call_site";
case 0x410a: return "DW_TAG_GNU_call_site_parameter";
case 0xffff: return "DW_TAG_hi_user";
+ case DW_TAG_invalid:
+ return "DW_TAG_invalid";
default:
return "DW_TAG_unknown";
}
}
+
+}
+}