forked from OSchip/llvm-project
Hook up the '.code {16|32}' directive to the streamer.
llvm-svn: 118310
This commit is contained in:
parent
cbdf7efe1c
commit
2db0ea03ba
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue