[mips] Make TTypeEncoding indirect to allow .eh_frame to be read-only.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 2 Jun 2015 20:32:50 +0000 (20:32 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Tue, 2 Jun 2015 20:32:50 +0000 (20:32 +0000)
commitc95f3f8c95c922a9697509f4a9c287dc4243bddf
tree633850099e4ec0d8af9d94ac9abb43c0fc109abe
parentacbea8fb3737e8e79611c9b0abcdcf593a488178
[mips] Make TTypeEncoding indirect to allow .eh_frame to be read-only.

Summary:
Following on from r209907 which made personality encodings indirect, do the
same for TType encodings. This fixes the case where a try/catch block needs
to generate references to, for example, std::exception in the
.gcc_except_table.

Previous attempts at committing this broke the buildbots due to bugs in IAS.
These bugs have now been fixed so trying again.

Reviewers: petarj

Reviewed By: petarj

Subscribers: srhines, joerg, tberghammer, llvm-commits

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

llvm-svn: 238863
llvm/lib/MC/MCObjectFileInfo.cpp
llvm/test/CodeGen/Mips/ehframe-indirect.ll