[ms-inline asm] Have the LookupInlineAsmIdentifier() callback function return a
authorChad Rosier <mcrosier@apple.com>
Thu, 18 Oct 2012 19:39:30 +0000 (19:39 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 18 Oct 2012 19:39:30 +0000 (19:39 +0000)
commitc8dd27e58301af85979facf291b817802d3523e5
tree0ae25382986499d48b67f03841cd1c4526e420ba
parent8c1dcdf26dc7d597308698b5ae08680cebcd9d3f
[ms-inline asm] Have the LookupInlineAsmIdentifier() callback function return a
*NamedDecl.  In turn, build the expressions after we're finished parsing the
asm.  This avoids a crasher if the lookup fails.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166212 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCParser/MCAsmParser.h
lib/MC/MCParser/AsmParser.cpp