diff options
author | Devang Patel <dpatel@apple.com> | 2010-08-09 21:39:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-08-09 21:39:24 +0000 |
commit | 2739896cdd3c987de3d7f9a41217b4b954287c8d (patch) | |
tree | b353ed867fde20ab2d487c63c4a2f35959b01644 /include/llvm/Analysis | |
parent | 84681572781ccbda4d73e75bf59d68b75c9b77f2 (diff) | |
download | external_llvm-2739896cdd3c987de3d7f9a41217b4b954287c8d.zip external_llvm-2739896cdd3c987de3d7f9a41217b4b954287c8d.tar.gz external_llvm-2739896cdd3c987de3d7f9a41217b4b954287c8d.tar.bz2 |
Refactor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/DebugInfo.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DebugInfo.h b/include/llvm/Analysis/DebugInfo.h index 488c48a..0fcc6e4 100644 --- a/include/llvm/Analysis/DebugInfo.h +++ b/include/llvm/Analysis/DebugInfo.h @@ -62,6 +62,7 @@ namespace llvm { } GlobalVariable *getGlobalVariableField(unsigned Elt) const; + Constant *getConstantField(unsigned Elt) const; Function *getFunctionField(unsigned Elt) const; public: @@ -447,6 +448,7 @@ namespace llvm { unsigned isDefinition() const { return getUnsignedField(10); } GlobalVariable *getGlobal() const { return getGlobalVariableField(11); } + Constant *getConstant() const { return getConstantField(11); } /// Verify - Verify that a global variable descriptor is well formed. bool Verify() const; @@ -696,6 +698,15 @@ namespace llvm { unsigned LineNo, DIType Ty, bool isLocalToUnit, bool isDefinition, llvm::GlobalVariable *GV); + /// CreateGlobalVariable - Create a new descriptor for the specified constant. + DIGlobalVariable + CreateGlobalVariable(DIDescriptor Context, StringRef Name, + StringRef DisplayName, + StringRef LinkageName, + DIFile F, + unsigned LineNo, DIType Ty, bool isLocalToUnit, + bool isDefinition, llvm::Constant *C); + /// CreateVariable - Create a new descriptor for the specified variable. DIVariable CreateVariable(unsigned Tag, DIDescriptor Context, StringRef Name, |