Remove unused argument.

llvm-svn: 115789
This commit is contained in:
Devang Patel 2010-10-06 15:58:57 +00:00
parent 3f0068d661
commit 5b389f495b
3 changed files with 3 additions and 5 deletions

View File

@ -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();

View File

@ -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);

View File

@ -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);
}