diff options
author | Colin LeMahieu <colinl@codeaurora.org> | 2014-12-31 15:57:38 +0000 |
---|---|---|
committer | Colin LeMahieu <colinl@codeaurora.org> | 2014-12-31 15:57:38 +0000 |
commit | 94272611ac9fcebc5ec87e3cb866fcecc4fb7ea2 (patch) | |
tree | 8e0c018b02f203f2ef4ca4e3b21cc06d9bf4c6b1 /llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp | |
parent | 24ea64e0507900b5c77511fcf825cc99dc1eb901 (diff) | |
download | bcm5719-llvm-94272611ac9fcebc5ec87e3cb866fcecc4fb7ea2.tar.gz bcm5719-llvm-94272611ac9fcebc5ec87e3cb866fcecc4fb7ea2.zip |
[Hexagon] Changing an llvm_unreachable to an assertion and returning 0. Relocations aren't implemented yet but we don't need to abort for this in release builds.
llvm-svn: 225043
Diffstat (limited to 'llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp')
-rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp index 4471977ab49..830be55431d 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp @@ -71,7 +71,8 @@ HexagonMCCodeEmitter::getMachineOpValue(MCInst const &MI, MCOperand const &MO, return MCT.getRegisterInfo()->getEncodingValue(MO.getReg()); if (MO.isImm()) return static_cast<unsigned>(MO.getImm()); - llvm_unreachable("Only Immediates and Registers implemented right now"); + assert(false && "Only Immediates and Registers implemented right now"); + return 0; } MCSubtargetInfo const &HexagonMCCodeEmitter::getSubtargetInfo() const { |