mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
Hook up the '.code {16|32}' directive to the streamer.
llvm-svn: 118310
This commit is contained in:
parent
a98b9ba916
commit
009007e690
@ -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
Block a user