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

llvm-svn: 118310
This commit is contained in:
Jim Grosbach 2010-11-05 22:40:53 +00:00
parent cbdf7efe1c
commit 2db0ea03ba
1 changed files with 5 additions and 2 deletions

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;
}