summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.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
commitbe8d7ba93a5e19017096faaf5df54335a6d52000 (patch)
tree2075bfb4188bd16bfa22392c4b4fab81f47bd777 /clang/lib/CodeGen/CGDebugInfo.h
parentb7ecc3e6afefc521fb0aa1e48ff3e64e34a46b8e (diff)
downloadbcm5719-llvm-be8d7ba93a5e19017096faaf5df54335a6d52000.tar.gz
bcm5719-llvm-be8d7ba93a5e19017096faaf5df54335a6d52000.zip
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 llvm-svn: 189649
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h
index a8ba14b8b3f..9642a83dfdd 100644
--- a/clang/lib/CodeGen/CGDebugInfo.h
+++ b/clang/lib/CodeGen/CGDebugInfo.h
@@ -264,13 +264,13 @@ public:
CGBuilderTy &Builder);
/// EmitGlobalVariable - Emit information about a global variable.
- void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl);
+ void EmitGlobalVariable(llvm::Value *VarOrInit, const VarDecl *Decl);
/// EmitGlobalVariable - Emit information about an objective-c interface.
void EmitGlobalVariable(llvm::GlobalVariable *GV, ObjCInterfaceDecl *Decl);
- /// EmitGlobalVariable - Emit global variable's debug info.
- void EmitGlobalVariable(const ValueDecl *VD, llvm::Constant *Init);
+ /// EmitEnumConstant - Emit information about an enumerator constant
+ void EmitEnumConstant(const EnumConstantDecl *ECD);
/// \brief - Emit C++ using directive.
void EmitUsingDirective(const UsingDirectiveDecl &UD);
OpenPOWER on IntegriCloud