diff options
| author | Devang Patel <dpatel@apple.com> | 2010-08-10 07:24:25 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2010-08-10 07:24:25 +0000 |
| commit | e03edfd3e7d883bb671fb3cd5ca94ffb470e5cfa (patch) | |
| tree | 099dae5eb9cf57beea7ced4b01dc9d2be27dbf67 /clang/lib/CodeGen/CGDebugInfo.h | |
| parent | b219746c80be195e914d6f620427217818476ba8 (diff) | |
| download | bcm5719-llvm-e03edfd3e7d883bb671fb3cd5ca94ffb470e5cfa.tar.gz bcm5719-llvm-e03edfd3e7d883bb671fb3cd5ca94ffb470e5cfa.zip | |
Even if a constant's evaluated value is used, emit debug info for the constant variable.
llvm-svn: 110660
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index b20506d4703..4df2ab62f82 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -181,6 +181,10 @@ public: /// EmitGlobalVariable - Emit information about an objective-c interface. void EmitGlobalVariable(llvm::GlobalVariable *GV, ObjCInterfaceDecl *Decl); + /// EmitGlobalVariable - Emit information about a constant. + void EmitGlobalVariable(llvm::Constant *C, const ValueDecl *VD, + CGBuilderTy &Builder); + private: /// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration. void EmitDeclare(const VarDecl *decl, unsigned Tag, llvm::Value *AI, |

