OSDN Git Service

[mips] Handle MipsMCExpr sub-expression for the MEK_DTPREL tag
authorSimon Atanasyan <simon@atanasyan.com>
Wed, 23 Jan 2019 22:02:53 +0000 (22:02 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Wed, 23 Jan 2019 22:02:53 +0000 (22:02 +0000)
commit0046ceba447b43114622d4ad6f39e679badc5cbc
tree77d165807fd8b54a7a86def978889e159758634e
parentc7b61ab2382c4dc21dc1bff59fe1663b2e6c3b02
[mips] Handle MipsMCExpr sub-expression for the MEK_DTPREL tag

This is a fix for a regression introduced by the rL348194 commit. In
that change new type (MEK_DTPREL) of MipsMCExpr expression was added,
but in some places of the code this type of expression considered as
unexpected.

This change fixes the bug. The MEK_DTPREL type of expression is used for
marking TLS DIEExpr only and contains a regular sub-expression. Where we
need to handle the expression, we retrieve the sub-expression and
handle it in a common way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351987 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
lib/Target/Mips/MCTargetDesc/MipsMCExpr.cpp
test/DebugInfo/Mips/dwarfdump-tls.ll