mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11220 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ecea5635f8
commit
2c37c18c6e
@ -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