diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2015-12-07 20:57:45 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2015-12-07 20:57:45 -0700 |
| commit | 1279fe0caaa83dd9f573dfe3c359098143224abc (patch) | |
| tree | 017bb5ff269f63d80a19fd72830f0970aea699f2 /src/zig_llvm.cpp | |
| parent | b66fb607bf00c8ac120f22080bcf48eb05cbc71f (diff) | |
| download | zig-1279fe0caaa83dd9f573dfe3c359098143224abc.tar.gz zig-1279fe0caaa83dd9f573dfe3c359098143224abc.zip | |
all variables have memory addresses
Diffstat (limited to 'src/zig_llvm.cpp')
| -rw-r--r-- | src/zig_llvm.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zig_llvm.cpp b/src/zig_llvm.cpp index 6ef2cace17..6e8f571030 100644 --- a/src/zig_llvm.cpp +++ b/src/zig_llvm.cpp @@ -211,6 +211,17 @@ LLVMZigDILexicalBlock *LLVMZigCreateLexicalBlock(LLVMZigDIBuilder *dbuilder, LLV return reinterpret_cast<LLVMZigDILexicalBlock*>(result); } +/* +LLVMZigDILocalVariable * + + DILocalVariable *createLocalVariable(unsigned Tag, DIScope *Scope, + StringRef Name, DIFile *File, + unsigned LineNo, DIType *Ty, + bool AlwaysPreserve = false, + unsigned Flags = 0, + unsigned ArgNo = 0); + */ + LLVMZigDIScope *LLVMZigLexicalBlockToScope(LLVMZigDILexicalBlock *lexical_block) { DIScope *scope = reinterpret_cast<DILexicalBlock*>(lexical_block); return reinterpret_cast<LLVMZigDIScope*>(scope); |
