[mips][micromips] Fix overlaping FDEs error
authorAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 14:39:12 +0000 (14:39 +0000)
committerAleksandar Beserminji <abeserminji@wavecomp.com>
Mon, 15 Oct 2018 14:39:12 +0000 (14:39 +0000)
commit81eb44077213f8e58cdf380009dc211e8413b846
tree50685c2df069110cb4cffa7701b1ebb045343aa1
parent585f55bb8b558915e646c7f95b49b870ab2f131a
[mips][micromips] Fix overlaping FDEs error

When compiling static executable for micromips, CFI symbols
are incorrectly labeled as MICROMIPS, which cause
".eh_frame_hdr refers to overlapping FDEs." error.

This patch does not label CFI symbols as MICROMIPS, and FDEs do not
overlap anymore. This patch also exposes another bug, which is fixed
here: https://reviews.llvm.org/D52985

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

llvm-svn: 344516
llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.cpp
llvm/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
llvm/test/DebugInfo/Mips/eh_frame.ll [new file with mode: 0644]