]> granicus.if.org Git - clang/commitdiff
Remove unused argument.
authorDevang Patel <dpatel@apple.com>
Wed, 6 Oct 2010 15:58:57 +0000 (15:58 +0000)
committerDevang Patel <dpatel@apple.com>
Wed, 6 Oct 2010 15:58:57 +0000 (15:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@115789 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CodeGenFunction.cpp

index 2c2738610cbf4afdf1696419d565b0ba5c6daadf..2a84d1d7d6124317fcdf3c9368f3f607af265a8c 100644 (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();
index 6df9a2fcb7579f3eba1daf831bab57f359884948..0c33fb396b90b32fe2d7f74a52d258235cd9b0c2 100644 (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);
index 56dccc1c0a45706c93b951a835c25334f84629a4..ed43ccadd2d76c4bdf261d6cc28fce41f55d3f67 100644 (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);
 }