diff options
author | Peter Smith <peter.smith@linaro.org> | 2018-06-15 09:48:18 +0000 |
---|---|---|
committer | Peter Smith <peter.smith@linaro.org> | 2018-06-15 09:48:18 +0000 |
commit | 1503fc0fd018ad30e02bb8c880330a2e351e4e76 (patch) | |
tree | 688756e1c629d0a594bf82223df4c26be422e4e4 /llvm/lib/MC/MCELFStreamer.cpp | |
parent | 205276bf37dc1e482e5d2d1ff5a9537aa4eb797f (diff) | |
download | bcm5719-llvm-1503fc0fd018ad30e02bb8c880330a2e351e4e76.tar.gz bcm5719-llvm-1503fc0fd018ad30e02bb8c880330a2e351e4e76.zip |
[MC] Move bundling and MCSubtargetInfo to MCEncodedFragment [NFC]
Instruction bundling is only supported on descendants of the
MCEncodedFragment type. By moving the bundling functionality and
MCSubtargetInfo to this class it makes it easier to set and extract the
MCSubtargetInfo when it is necessary.
This is a refactoring change that will make it easier to pass the
MCSubtargetInfo through to writeNops when nop padding is required.
Differential Revision: https://reviews.llvm.org/D45959
llvm-svn: 334814
Diffstat (limited to 'llvm/lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | llvm/lib/MC/MCELFStreamer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCELFStreamer.cpp b/llvm/lib/MC/MCELFStreamer.cpp index df11495a954..f44d877e260 100644 --- a/llvm/lib/MC/MCELFStreamer.cpp +++ b/llvm/lib/MC/MCELFStreamer.cpp @@ -557,6 +557,7 @@ void MCELFStreamer::EmitInstToData(const MCInst &Inst, MCCompactEncodedInstFragment *CEIF = new MCCompactEncodedInstFragment(); insert(CEIF); CEIF->getContents().append(Code.begin(), Code.end()); + CEIF->setHasInstructions(STI); return; } else { DF = new MCDataFragment(); |