llvm.org GIT mirror llvm / bad9def
Use the new API for creating an OpaqueType. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79107 91177308-0d34-0410-b5e6-96231b3b80d8 Nicolas Geoffray 10 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
515515 if (TI != TypeStack.end()) {
516516 TypeMap::const_iterator I = UnresolvedTypes.find(Ty);
517517 if (I == UnresolvedTypes.end()) {
518 Out << "PATypeHolder " << typeName << "_fwd = OpaqueType::get();";
518 Out << "PATypeHolder " << typeName;
519 Out << "_fwd = OpaqueType::get(getGlobalContext());";
519520 nl(Out);
520521 UnresolvedTypes[Ty] = typeName;
521522 }
615616 break;
616617 }
617618 case Type::OpaqueTyID: {
618 Out << "OpaqueType* " << typeName << " = OpaqueType::get();";
619 Out << "OpaqueType* " << typeName;
620 Out << " = OpaqueType::get(getGlobalContext());";
619621 nl(Out);
620622 break;
621623 }