Remove a bunch of cruft and dead code for handling the case when types were
authorChris Lattner <sabre@nondot.org>
Mon, 21 Mar 2005 06:27:42 +0000 (06:27 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Mar 2005 06:27:42 +0000 (06:27 +0000)
commit355ad1f3aff45acc0bd06afd7c4150509334a20d
tree82ba2cba70f0cd417b7d9bd8968ee1ded04db75a
parent97310eab6dcf2039e502d529e78cbec967cebbb0
Remove a bunch of cruft and dead code for handling the case when types were
defined in function constant pools.  The assembler grammar has long
disallowed functions from having constant pools, so all of this stuff is
dead.

This makes it an immediate error for functions to refer to nonexisting
types, fixing Regression/Verifier/2005-03-21-UndefinedTypeReference.ll.

Before, references to non-existing types in functions would only be
detected when the subsequent function was parsed, due to the call to
"ResolveTypes".  "ResolveTypes" has not resolved any types for a long time,
instead it emitted an error message if no resolved types are left.  Since
the only caller of this method is in the module code, just inline it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20726 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/llvmAsmParser.y