summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2013-08-30 05:37:02 +0000
committerYunzhong Gao <Yunzhong_Gao@playstation.sony.com>2013-08-30 05:37:02 +0000
commit51a31e1da76cc0906e4708ae15e2f7ecf1ba5f13 (patch)
tree4c8cecbf1de67e4f1418a193759c209b8ae5293a /lib/CodeGen/CodeGenFunction.h
parentbb6b5e40b6ea0e512eebd4bdc9d635076ed279f7 (diff)
downloadclang-51a31e1da76cc0906e4708ae15e2f7ecf1ba5f13.tar.gz
clang-51a31e1da76cc0906e4708ae15e2f7ecf1ba5f13.tar.bz2
clang-51a31e1da76cc0906e4708ae15e2f7ecf1ba5f13.tar.xz
Fixing a bug where debug info for a local variable gets emitted at file scope.
The patch was discussed in Phabricator. See: http://llvm-reviews.chandlerc.com/D1281 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189649 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r--lib/CodeGen/CodeGenFunction.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h
index 20c0b82553..9913c68fcf 100644
--- a/lib/CodeGen/CodeGenFunction.h
+++ b/lib/CodeGen/CodeGenFunction.h
@@ -2047,7 +2047,8 @@ public:
LValue EmitStmtExprLValue(const StmtExpr *E);
LValue EmitPointerToDataMemberBinaryExpr(const BinaryOperator *E);
LValue EmitObjCSelectorLValue(const ObjCSelectorExpr *E);
- void EmitDeclRefExprDbgValue(const DeclRefExpr *E, llvm::Constant *Init);
+ void EmitValueDeclDbgValue(const ValueDecl *Val, llvm::Constant *Init);
+
//===--------------------------------------------------------------------===//
// Scalar Expression Emission