Upreferences are always OpaqueTypes, meaning that it is impossible for a non-abstract

type from containing one.  This speeds up the asmparser on the testcase in PR224 from
61->50s.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-02-09 03:03:10 +00:00
parent ecea5635f8
commit 2c37c18c6e

View File

@ -603,6 +603,7 @@ static std::vector<std::pair<unsigned, OpaqueType *> > UpRefs;
/// thus we can complete the cycle.
///
static PATypeHolder HandleUpRefs(const Type *ty) {
if (!ty->isAbstract()) return ty;
PATypeHolder Ty(ty);
UR_OUT("Type '" << Ty->getDescription() <<
"' newly formed. Resolving upreferences.\n" <<