diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-03-20 17:49:48 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-03-20 17:49:48 +0000 |
commit | 3fac43d8b4111feca59d77941ac2ebd1f858dd33 (patch) | |
tree | 67a4f7003b51300eaefce49a9faefcc526454a59 /include/llvm/DIBuilder.h | |
parent | 980b5140ffb2e410b9e9981794ed0b52573a716e (diff) | |
download | external_llvm-3fac43d8b4111feca59d77941ac2ebd1f858dd33.zip external_llvm-3fac43d8b4111feca59d77941ac2ebd1f858dd33.tar.gz external_llvm-3fac43d8b4111feca59d77941ac2ebd1f858dd33.tar.bz2 |
DIBuilder: allow linkage name to be specified for global variables
Patch by Kai Nacke (kai@redstar.de)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/DIBuilder.h')
-rw-r--r-- | include/llvm/DIBuilder.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/llvm/DIBuilder.h b/include/llvm/DIBuilder.h index 043e429..de6c38f 100644 --- a/include/llvm/DIBuilder.h +++ b/include/llvm/DIBuilder.h @@ -407,6 +407,19 @@ namespace llvm { createGlobalVariable(StringRef Name, DIFile File, unsigned LineNo, DIType Ty, bool isLocalToUnit, llvm::Value *Val); + /// \brief Create a new descriptor for the specified global. + /// @param Name Name of the variable. + /// @param LinkageName Mangled variable name. + /// @param File File where this variable is defined. + /// @param LineNo Line number. + /// @param Ty Variable Type. + /// @param isLocalToUnit Boolean flag indicate whether this variable is + /// externally visible or not. + /// @param Val llvm::Value of the variable. + DIGlobalVariable + createGlobalVariable(StringRef Name, StringRef LinkageName, DIFile File, + unsigned LineNo, DIType Ty, bool isLocalToUnit, + llvm::Value *Val); /// createStaticVariable - Create a new descriptor for the specified /// variable. |