[AsmPrinter] Use the per-function subtarget to emit inline asm instructions that
authorAkira Hatanaka <ahatanaka@apple.com>
Mon, 16 Mar 2015 18:02:16 +0000 (18:02 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Mon, 16 Mar 2015 18:02:16 +0000 (18:02 +0000)
commited7120e7fd5d0e647d51c2fbac867d3bd42d77da
tree50a694fe0500f82f5be6abc38c28bbaf70b434e4
parent89095a7882dcb4520a5d5fc77fe6f0230292d6dd
[AsmPrinter] Use the per-function subtarget to emit inline asm instructions that
are not at the file level.

Previously, the default subtarget created from the target triple was used to
emit inline asm instructions. Compilation would fail in cases where the feature
bits necessary to assemble an inline asm instruction in a function weren't set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232392 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp