[llvm] r309129 - [Hexagon] Mark raise_relocation_error as NORETURN.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 09:07:52 PDT 2017
Author: fhahn
Date: Wed Jul 26 09:07:51 2017
New Revision: 309129
URL: http://llvm.org/viewvc/llvm-project?rev=309129&view=rev
Log:
[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
Modified:
llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp?rev=309129&r1=309128&r2=309129&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp Wed Jul 26 09:07:51 2017
@@ -159,6 +159,7 @@ void HexagonMCCodeEmitter::EncodeSingleI
}
namespace {
+LLVM_ATTRIBUTE_NORETURN
void raise_relocation_error(unsigned bits, unsigned kind) {
std::string Text;
{
More information about the llvm-commits
mailing list