As a note I should refactor this into a separate routine since it shows up a 
few times now.

-eric

On Jan 20, 2012, at 2:10 PM, Eric Christopher wrote:

> +      if (CXXDecl)
> +        Ty = DBuilder.createClassType(FDContext, RD->getName(), DefUnit,
> +                                      Line, 0, 0, 0,
> +                                      llvm::DIType::FlagFwdDecl,
> +                                      llvm::DIType(), llvm::DIArray());
> +      else if (RD->isStruct())
> +        Ty = DBuilder.createStructType(FDContext, RD->getName(), DefUnit,
> +                                       Line, 0, 0, llvm::DIType::FlagFwdDecl,
> +                                       llvm::DIArray());
> +      else if (RD->isUnion())
> +        Ty = DBuilder.createUnionType(FDContext, RD->getName(), DefUnit,
> +                                      Line, 0, 0, llvm::DIType::FlagFwdDecl,
> +                                      llvm::DIArray());

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to