[clang][DebugInfo] Support debug info for alias variable
clang to emit DWARF information for global alias variable as DW_TAG_imported_declaration. This change also handles nested (recursive) imported declarations. Reviewed by: dblaikie, aprantl Differential Revision: https://reviews.llvm.org/D120989
Showing
- clang/lib/CodeGen/CGDebugInfo.cpp 52 additions, 0 deletionsclang/lib/CodeGen/CGDebugInfo.cpp
- clang/lib/CodeGen/CGDebugInfo.h 6 additions, 1 deletionclang/lib/CodeGen/CGDebugInfo.h
- clang/lib/CodeGen/CodeGenModule.cpp 17 additions, 0 deletionsclang/lib/CodeGen/CodeGenModule.cpp
- clang/lib/CodeGen/CodeGenModule.h 1 addition, 0 deletionsclang/lib/CodeGen/CodeGenModule.h
- clang/test/CodeGen/debug-info-alias.c 15 additions, 0 deletionsclang/test/CodeGen/debug-info-alias.c
Loading
Please register or sign in to comment