Hook up the '.code {16|32}' directive to the streamer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2010-11-05 22:40:53 +00:00
parent ba21957cbd
commit 2a301704ea

View File

@ -958,8 +958,11 @@ bool ARMAsmParser::ParseDirectiveCode(SMLoc L) {
return Error(Parser.getTok().getLoc(), "unexpected token in directive");
Parser.Lex();
// TODO tell the MC streamer the mode
// getParser().getStreamer().Emit???();
if (Val == 16)
getParser().getStreamer().EmitAssemblerFlag(MCAF_Code16);
else
getParser().getStreamer().EmitAssemblerFlag(MCAF_Code32);
return false;
}