mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 21:00:29 +00:00
Add '.code 32' assembler directive to MC streamers.
llvm-svn: 118309
This commit is contained in:
parent
3d432a39dd
commit
a98b9ba916
@ -45,7 +45,8 @@ enum MCSymbolAttr {
|
||||
enum MCAssemblerFlag {
|
||||
MCAF_SyntaxUnified, ///< .syntax (ARM/ELF)
|
||||
MCAF_SubsectionsViaSymbols, ///< .subsections_via_symbols (MachO)
|
||||
MCAF_Code16 ///< .code 16
|
||||
MCAF_Code16, ///< .code 16
|
||||
MCAF_Code32 ///< .code 32
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
@ -255,6 +255,7 @@ void MCAsmStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
|
||||
case MCAF_SyntaxUnified: OS << "\t.syntax unified"; break;
|
||||
case MCAF_SubsectionsViaSymbols: OS << ".subsections_via_symbols"; break;
|
||||
case MCAF_Code16: OS << "\t.code\t16"; break;
|
||||
case MCAF_Code32: OS << "\t.code\t32"; break;
|
||||
}
|
||||
EmitEOL();
|
||||
}
|
||||
|
@ -181,6 +181,7 @@ void MCELFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
|
||||
switch (Flag) {
|
||||
case MCAF_SyntaxUnified: return; // no-op here.
|
||||
case MCAF_Code16: return; // no-op here.
|
||||
case MCAF_Code32: return; // no-op here.
|
||||
case MCAF_SubsectionsViaSymbols:
|
||||
getAssembler().setSubsectionsViaSymbols(true);
|
||||
return;
|
||||
|
@ -152,6 +152,7 @@ void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
|
||||
switch (Flag) {
|
||||
case MCAF_SyntaxUnified: return; // no-op here.
|
||||
case MCAF_Code16: return; // no-op here.
|
||||
case MCAF_Code32: return; // no-op here.
|
||||
case MCAF_SubsectionsViaSymbols:
|
||||
getAssembler().setSubsectionsViaSymbols(true);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user