mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Merging r225521:
------------------------------------------------------------------------ r225521 | tomatabacu | 2015-01-09 15:00:30 +0000 (Fri, 09 Jan 2015) | 1 line [mips] Add comment which explains why we need to change the assembler options before and after inline asm blocks. NFC. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@231463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
89ee039cd4
commit
17347ac3f1
@ -725,6 +725,12 @@ void MipsAsmPrinter::emitInlineAsmStart(
|
|||||||
const MCSubtargetInfo &StartInfo) const {
|
const MCSubtargetInfo &StartInfo) const {
|
||||||
MipsTargetStreamer &TS = getTargetStreamer();
|
MipsTargetStreamer &TS = getTargetStreamer();
|
||||||
|
|
||||||
|
// GCC's choice of assembler options for inline assembly code ('at', 'macro'
|
||||||
|
// and 'reorder') is different from LLVM's choice for generated code ('noat',
|
||||||
|
// 'nomacro' and 'noreorder').
|
||||||
|
// In order to maintain compatibility with inline assembly code which depends
|
||||||
|
// on GCC's assembler options being used, we have to switch to those options
|
||||||
|
// for the duration of the inline assembly block and then switch back.
|
||||||
TS.emitDirectiveSetPush();
|
TS.emitDirectiveSetPush();
|
||||||
TS.emitDirectiveSetAt();
|
TS.emitDirectiveSetAt();
|
||||||
TS.emitDirectiveSetMacro();
|
TS.emitDirectiveSetMacro();
|
||||||
|
Loading…
Reference in New Issue
Block a user