mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
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. llvm-svn: 11220
This commit is contained in:
parent
95c21b04da
commit
645f8fb4e5
@ -603,6 +603,7 @@ static std::vector<std::pair<unsigned, OpaqueType *> > UpRefs;
|
|||||||
/// thus we can complete the cycle.
|
/// thus we can complete the cycle.
|
||||||
///
|
///
|
||||||
static PATypeHolder HandleUpRefs(const Type *ty) {
|
static PATypeHolder HandleUpRefs(const Type *ty) {
|
||||||
|
if (!ty->isAbstract()) return ty;
|
||||||
PATypeHolder Ty(ty);
|
PATypeHolder Ty(ty);
|
||||||
UR_OUT("Type '" << Ty->getDescription() <<
|
UR_OUT("Type '" << Ty->getDescription() <<
|
||||||
"' newly formed. Resolving upreferences.\n" <<
|
"' newly formed. Resolving upreferences.\n" <<
|
||||||
|
Loading…
Reference in New Issue
Block a user