Keep the MCSubtargetInfo in the MCRelxableFragment class.
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 28 Jan 2014 23:12:53 +0000 (23:12 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 28 Jan 2014 23:12:53 +0000 (23:12 +0000)
commit41c8ba9d61acb86847ad6cf823656e212d8dbbf5
treeefcb7a7b032fec0ed330e442838b7eebb73f338c
parentd5d381b76253fb6ccda6adc7b9d7239305b3d881
Keep the MCSubtargetInfo in the MCRelxableFragment class.

Needed to fix PR18303 to correctly re-encode the instruction if it
is relaxed.

We keep a copy of the MCSubtargetInfo to make sure that we are not
effected by future changes to the subtarget info coming from the
assembler (e.g. when parsing .code 16 directived).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200347 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCAssembler.h
lib/MC/MCObjectStreamer.cpp
lib/MC/MCPureStreamer.cpp