diff options
author | Devang Patel <dpatel@apple.com> | 2010-10-06 15:58:57 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-10-06 15:58:57 +0000 |
commit | d2829b76a87a70791184b3cac89900d2cda46ce4 (patch) | |
tree | c7ab6ac8d5c9faf622d20adc964a7f198c4f552f /lib/CodeGen | |
parent | 229ca4a04cd1f94ca5ce907638c699fd024a6347 (diff) |
Remove unused argument.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115789 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 3 | ||||
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 3 | ||||
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 2c2738610c..2a84d1d7d6 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -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(); diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 6df9a2fcb7..0c33fb396b 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -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); diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 56dccc1c0a..ed43ccadd2 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -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); } |