Diagnostic for undefined assembler local symbols.
authorJim Grosbach <grosbach@apple.com>
Wed, 15 Jun 2011 18:33:28 +0000 (18:33 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 15 Jun 2011 18:33:28 +0000 (18:33 +0000)
commite82b8eeaa2d36ee52690ae19bca9735629b6003e
tree89b7d51d52090f5fc5485c76297c220228b9abbb
parent2f473cee286e9c71ee8e7d6b1c46b05f2aed7336
Diagnostic for undefined assembler local symbols.

Re-apply 133010, with fixes for inline assembler.

Original commit message:
"When an assembler local symbol is used but not defined in a module, a
Darwin assembler wants to issue a diagnostic to that effect."

Added fix to only perform the check when finalizing, as otherwise we're not
done and undefined symbols may simply not have been encountered yet.

Passes "make check" and a self-host check on Darwin.

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