[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)
commit322ffceaf5b413b61145c26fb524a1eeb5646239
tree481db8c60a584ef91a698f586431c967f9061585
parenta8ec726bb6a248b17f4fa8ef6568253e3c742f28
[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.

llvm-svn: 232392
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp