summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-07-26 16:07:51 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-07-26 16:07:51 +0000
commit239e4b9301e11942ee19da229ca9fd7aa83a4125 (patch)
treeb56c19cedbe2dd32b1ce215aa5c403edbcffca4c /llvm/lib
parent641f387cd0ee0458a005b239d494c6d9e0490658 (diff)
downloadbcm5719-llvm-239e4b9301e11942ee19da229ca9fd7aa83a4125.tar.gz
bcm5719-llvm-239e4b9301e11942ee19da229ca9fd7aa83a4125.zip
[Hexagon] Mark raise_relocation_error as NORETURN.
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 llvm-svn: 309129
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
index 50f00d1aaea..32021eee3d1 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
@@ -159,6 +159,7 @@ void HexagonMCCodeEmitter::EncodeSingleInstruction(
}
namespace {
+LLVM_ATTRIBUTE_NORETURN
void raise_relocation_error(unsigned bits, unsigned kind) {
std::string Text;
{
OpenPOWER on IntegriCloud