diff options
| author | Adrian Prantl <aprantl@apple.com> | 2016-08-17 16:02:43 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2016-08-17 16:02:43 +0000 |
| commit | c19dee734f3adfb800f1a9684fe661c827370885 (patch) | |
| tree | 72f2f9cf241855aa23c8d588816072032d21362c /llvm/unittests/IR | |
| parent | ea7e4647dbebcbbf327b747cba651e13e1fc65b0 (diff) | |
| download | bcm5719-llvm-c19dee734f3adfb800f1a9684fe661c827370885.tar.gz bcm5719-llvm-c19dee734f3adfb800f1a9684fe661c827370885.zip | |
Support the DW_AT_noreturn DWARF flag.
This is used to mark functions with the C++11 [[ noreturn ]] or C11 _Noreturn
attributes.
Patch by Victor Leschuk!
https://reviews.llvm.org/D23167
llvm-svn: 278940
Diffstat (limited to 'llvm/unittests/IR')
| -rw-r--r-- | llvm/unittests/IR/DebugInfoTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/unittests/IR/DebugInfoTest.cpp b/llvm/unittests/IR/DebugInfoTest.cpp index f633782b379..c089ff375b3 100644 --- a/llvm/unittests/IR/DebugInfoTest.cpp +++ b/llvm/unittests/IR/DebugInfoTest.cpp @@ -73,8 +73,9 @@ TEST(DINodeTest, splitFlags) { CHECK_SPLIT(DINode::FlagRValueReference, {DINode::FlagRValueReference}, 0u); unsigned Flags[] = {DINode::FlagFwdDecl, DINode::FlagVector}; CHECK_SPLIT(DINode::FlagFwdDecl | DINode::FlagVector, Flags, 0u); - CHECK_SPLIT(0x100000u, {}, 0x100000u); - CHECK_SPLIT(0x100000u | DINode::FlagVector, {DINode::FlagVector}, 0x100000u); + CHECK_SPLIT(0x200000u, {}, 0x200000u); + CHECK_SPLIT(0x200000u | DINode::FlagVector, {DINode::FlagVector}, 0x200000u); + CHECK_SPLIT(0x200000u | DINode::FlagNoReturn, {DINode::FlagNoReturn}, 0x200000u); #undef CHECK_SPLIT } |

