diff options
author | Adrian Prantl <aprantl@apple.com> | 2019-10-16 16:30:38 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2019-10-16 16:30:38 +0000 |
commit | 5cd7a6f916b7b11f9955587e413af95c3f45bc7b (patch) | |
tree | 40052ce646dc3bf5e9abecfc7c4c16a7e39a1a93 /lib/CodeGen/CGDebugInfo.cpp | |
parent | 9db088e09ee7d5574b0fb4086d9258e9fb062c42 (diff) | |
download | clang-5cd7a6f916b7b11f9955587e413af95c3f45bc7b.tar.gz |
[DWARF5] Added support for DW_AT_noreturn attribute to be emitted for
C++ class member functions.
Patch by Sourabh Singh Tomar!
Differential Revision: https://reviews.llvm.org/D68697
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@375012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 3d140ba7d7..7962ae002b 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1605,6 +1605,8 @@ llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction( ContainingType = RecordTy; } + if (Method->isNoReturn()) + Flags |= llvm::DINode::FlagNoReturn; if (Method->isStatic()) Flags |= llvm::DINode::FlagStaticMember; if (Method->isImplicit()) |