mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some
methods to try to have the type predicates be more logically positioned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,7 +57,7 @@ bool MSILModule::runOnModule(Module &M) {
|
||||
TypeSymbolTable& Table = M.getTypeSymbolTable();
|
||||
std::set<const Type *> Types = getAnalysis<FindUsedTypes>().getTypes();
|
||||
for (TypeSymbolTable::iterator I = Table.begin(), E = Table.end(); I!=E; ) {
|
||||
if (!I->second->isStructTy() && !isa<OpaqueType>(I->second))
|
||||
if (!I->second->isStructTy() && !I->second->isOpaqueTy())
|
||||
Table.remove(I++);
|
||||
else {
|
||||
std::set<const Type *>::iterator T = Types.find(I->second);
|
||||
|
||||
Reference in New Issue
Block a user