diff options
| author | Victor Leschuk <vleschuk@accesssoftek.com> | 2016-10-31 19:09:47 +0000 |
|---|---|---|
| committer | Victor Leschuk <vleschuk@accesssoftek.com> | 2016-10-31 19:09:47 +0000 |
| commit | 0df19037c4d1233680ffa7fc8e6c9bb4b6abdcc6 (patch) | |
| tree | 7533be03ccfb0392f3e719f835d5d32a7d82be54 /clang/lib/CodeGen | |
| parent | e1156c2eb05f12bb1dcbdd03532ed8098d415695 (diff) | |
| download | bcm5719-llvm-0df19037c4d1233680ffa7fc8e6c9bb4b6abdcc6.tar.gz bcm5719-llvm-0df19037c4d1233680ffa7fc8e6c9bb4b6abdcc6.zip | |
DebugInfo: support for DW_TAG_atomic_type
Mark C11 _Atomic variables with DW_TAG_atomic_type tag.
Differential Revision: https://reviews.llvm.org/D26145
llvm-svn: 285625
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 6a6b83e3314..c1396bde4ac 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -2287,9 +2287,8 @@ llvm::DIType *CGDebugInfo::CreateType(const MemberPointerType *Ty, } llvm::DIType *CGDebugInfo::CreateType(const AtomicType *Ty, llvm::DIFile *U) { - // Ignore the atomic wrapping - // FIXME: What is the correct representation? - return getOrCreateType(Ty->getValueType(), U); + auto *FromTy = getOrCreateType(Ty->getValueType(), U); + return DBuilder.createQualifiedType(llvm::dwarf::DW_TAG_atomic_type, FromTy); } llvm::DIType* CGDebugInfo::CreateType(const PipeType *Ty, |

