[PATCH] Add a DIModule debug info metadata node to the IR.
Adrian Prantl
aprantl at apple.com
Thu Jun 25 16:44:22 PDT 2015
These four properties are certainly very specific to clang modules.
Since they need to get translated into custom DW_AT_LLVM_key("value") by the backend, we could implement a generic mechanism like:
// assuming that DW_AT_LLVM_config_macros = DW_AT_lo_user = 0x2500
!2 = !DIModule(scope: !0, name: "Module", stringAttrs: !{ i32 9472, !"-DNDEBUG", ...})
... which the backend then interprets as a list of DW_FORM_strp attributes.
But since we don't have named constants in the IR to make this more readable, I'm not convinced that this is preferable at the moment.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D9614
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list