mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
Fix all the silly things I committed in r184509
llvm-svn: 184512
This commit is contained in:
@@ -1916,10 +1916,11 @@ void CGDebugInfo::completeFwdDecl(const RecordDecl &RD) {
|
||||
if (DebugKind <= CodeGenOptions::LimitedDebugInfo)
|
||||
return;
|
||||
|
||||
llvm::DIType T = getTypeOrNull(CGM.getContext().getRecordType(&RD));
|
||||
QualType QTy = CGM.getContext().getRecordType(&RD);
|
||||
llvm::DIType T = getTypeOrNull(QTy);
|
||||
|
||||
if (T.Verify() && T.isForwardDecl())
|
||||
getOrCreateType(QTy, getOrCreateFile(RD.getLocation());
|
||||
getOrCreateType(QTy, getOrCreateFile(RD.getLocation()));
|
||||
}
|
||||
|
||||
/// getCachedInterfaceTypeOrNull - Get the type from the interface
|
||||
|
||||
@@ -289,7 +289,7 @@ public:
|
||||
llvm::DIType getOrCreateInterfaceType(QualType Ty,
|
||||
SourceLocation Loc);
|
||||
|
||||
void completeFwdDecls(const RecordDecl *TD);
|
||||
void completeFwdDecl(const RecordDecl &TD);
|
||||
|
||||
private:
|
||||
/// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration.
|
||||
|
||||
@@ -264,7 +264,7 @@ void CodeGenTypes::UpdateCompletedType(const TagDecl *TD) {
|
||||
// If necessary, provide the full definition of a type only used with a
|
||||
// declaration so far.
|
||||
if (CGDebugInfo *DI = CGM.getModuleDebugInfo())
|
||||
DI->completeFwdDecls(RD);
|
||||
DI->completeFwdDecl(*RD);
|
||||
}
|
||||
|
||||
static llvm::Type *getTypeForFormat(llvm::LLVMContext &VMContext,
|
||||
|
||||
Reference in New Issue
Block a user