]> granicus.if.org Git - llvm/commitdiff
[Hexagon] Mark raise_relocation_error as NORETURN.
authorFlorian Hahn <florian.hahn@arm.com>
Wed, 26 Jul 2017 16:07:51 +0000 (16:07 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Wed, 26 Jul 2017 16:07:51 +0000 (16:07 +0000)
Summary:
This silences a couple of implicit fallthrough warnings with GCC 7.1 in
this file.

Reviewers: colinl, kparzysz

Reviewed By: kparzysz

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D35889

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309129 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp

index 50f00d1aaeacf21438ee04af3bcab564c67acec5..32021eee3d17e881478da133019f332d9442ce21 100644 (file)
@@ -159,6 +159,7 @@ void HexagonMCCodeEmitter::EncodeSingleInstruction(
 }
 
 namespace {
+LLVM_ATTRIBUTE_NORETURN
 void raise_relocation_error(unsigned bits, unsigned kind) {
   std::string Text;
   {