summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorToma Tabacu <toma.tabacu@imgtec.com>2014-12-17 10:56:16 +0000
committerToma Tabacu <toma.tabacu@imgtec.com>2014-12-17 10:56:16 +0000
commita23f13c3b092a8866508143f9e840dee599f8789 (patch)
treef208540119a9550b61c3ec24f2127731bba976f2 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent43fae93da8b5c927d22e7ad0e63cf733c644b440 (diff)
downloadbcm5719-llvm-a23f13c3b092a8866508143f9e840dee599f8789.tar.gz
bcm5719-llvm-a23f13c3b092a8866508143f9e840dee599f8789.zip
[mips] Set GCC-compatible MIPS asssembler options before inline asm blocks.
Summary: When generating MIPS assembly, LLVM always overrides the default assembler options by emitting the '.set noreorder', '.set nomacro' and '.set noat' directives, while GCC uses the default options if an assembly-level function contains inline assembly code. This becomes a problem when the code generated by LLVM is interleaved with inline assembly which assumes GCC-like assembler options (from Linux, for example). This patch fixes these conflicts by setting the appropriate assembler options at the beginning of an inline asm block and popping them at the end. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D6637 llvm-svn: 224425
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud