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 | a9cfde1f6ab5ca52467c9e8695c64ddd247bd4ef (patch) | |
tree | 0240c691f99a6a84744fb340c97a522ae6127647 /clang/lib/CodeGen/CGDebugInfo.cpp | |
parent | 0216a3c6d1c12357767b52a66151781cc2e1c5cd (diff) | |
download | bcm5719-llvm-a9cfde1f6ab5ca52467c9e8695c64ddd247bd4ef.tar.gz bcm5719-llvm-a9cfde1f6ab5ca52467c9e8695c64ddd247bd4ef.zip |
[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
llvm-svn: 375012
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3d140ba7d7b..7962ae002b2 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/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()) |