]> granicus.if.org Git - llvm/commit
Merging r352034:
authorHans Wennborg <hans@hanshq.net>
Fri, 25 Jan 2019 00:18:40 +0000 (00:18 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 25 Jan 2019 00:18:40 +0000 (00:18 +0000)
commit9ff1abe5edcd457323c093af72e3c1811b82262d
treed14cb7dd128f96cb7d047fd225a0b3b81264b48b
parent3292b91beaee992ebc65aaf4008676fda181ceff
Merging r352034:
------------------------------------------------------------------------
r352034 | atanasyan | 2019-01-24 10:13:14 +0100 (Thu, 24 Jan 2019) | 18 lines

Reapply: [mips] Handle MipsMCExpr sub-expression for the MEK_DTPREL tag

This reapplies commit r351987 with a failed test fix. Now the test
accepts both DW_OP_GNU_push_tls_address and DW_OP_form_tls_address
opcode.

Original commit message:
```
  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/branches/release_80@352140 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
lib/Target/Mips/MCTargetDesc/MipsMCExpr.cpp
test/DebugInfo/Mips/dwarfdump-tls.ll