forked from OSchip/llvm-project
parent
3f0068d661
commit
5b389f495b
|
@ -1931,8 +1931,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
|
|||
|
||||
/// EmitGlobalVariable - Emit global variable's debug info.
|
||||
void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD,
|
||||
llvm::ConstantInt *Init,
|
||||
CGBuilderTy &Builder) {
|
||||
llvm::ConstantInt *Init) {
|
||||
// Create the descriptor for the variable.
|
||||
llvm::DIFile Unit = getOrCreateFile(VD->getLocation());
|
||||
llvm::StringRef Name = VD->getName();
|
||||
|
|
|
@ -186,8 +186,7 @@ public:
|
|||
void EmitGlobalVariable(llvm::GlobalVariable *GV, ObjCInterfaceDecl *Decl);
|
||||
|
||||
/// EmitGlobalVariable - Emit global variable's debug info.
|
||||
void EmitGlobalVariable(const ValueDecl *VD, llvm::ConstantInt *Init,
|
||||
CGBuilderTy &Builder);
|
||||
void EmitGlobalVariable(const ValueDecl *VD, llvm::ConstantInt *Init);
|
||||
|
||||
/// getOrCreateRecordType - Emit record type's standalone debug info.
|
||||
llvm::DIType getOrCreateRecordType(QualType Ty, SourceLocation L);
|
||||
|
|
|
@ -1550,5 +1550,5 @@ void CodeGenFunction::EmitDeclRefExprDbgValue(const DeclRefExpr *E,
|
|||
llvm::ConstantInt *Init) {
|
||||
assert (Init && "Invalid DeclRefExpr initializer!");
|
||||
if (CGDebugInfo *Dbg = getDebugInfo())
|
||||
Dbg->EmitGlobalVariable(E->getDecl(), Init, Builder);
|
||||
Dbg->EmitGlobalVariable(E->getDecl(), Init);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue