[mips] Save a copy of MipsABIInfo in the MipsTargetStreamer to escape a dangling...
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 14 Sep 2015 11:18:03 +0000 (11:18 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 14 Sep 2015 11:18:03 +0000 (11:18 +0000)
commit8620c3bae57ce32ff664718b854a9d4004d26ca2
tree8b73bcfdd64aa7c156dfb3afe9423ef62099da2d
parentfadc359170b3ad198fc961d677a0ee7af1bca560
[mips] Save a copy of MipsABIInfo in the MipsTargetStreamer to escape a dangling pointer

The MipsTargetELFStreamer can receive ABI info from many sources. For example,
from the MipsAsmParser instance. Lifetime of the MipsAsmParser can be shorter
than MipsTargetELFStreamer's lifetime. In that case we get a dangling pointer
to MipsABIInfo.

Differential Revision: http://reviews.llvm.org/D12805

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsTargetStreamer.h