diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-12-16 01:00:30 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-12-16 01:00:30 +0000 |
commit | 03c6d31a3b308afb2c6a4c506002c88c48c9d58d (patch) | |
tree | 755debe0ba8d4df68b9f524f8f689e15b4ec1a4f /llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | |
parent | 6f1daa4660edb7f401c67b3e23d213bce103bca9 (diff) | |
download | bcm5719-llvm-03c6d31a3b308afb2c6a4c506002c88c48c9d58d.tar.gz bcm5719-llvm-03c6d31a3b308afb2c6a4c506002c88c48c9d58d.zip |
Revert "[IR] Remove the DIExpression field from DIGlobalVariable."
This reverts commit 289902 while investigating bot berakage.
llvm-svn: 289906
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h index a8025f1d152..da20bef5221 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h @@ -91,16 +91,9 @@ public: /// Apply the DW_AT_stmt_list from this compile unit to the specified DIE. void applyStmtList(DIE &D); - /// A pair of GlobalVariable and DIExpression. - struct GlobalExpr { - const GlobalVariable *Var; - const DIExpression *Expr; - }; - - /// Get or create global variable DIE. - DIE * - getOrCreateGlobalVariableDIE(const DIGlobalVariable *GV, - ArrayRef<GlobalExpr> GlobalExprs); + /// getOrCreateGlobalVariableDIE - get or create global variable DIE. + DIE *getOrCreateGlobalVariableDIE(const DIGlobalVariable *GV, + const GlobalVariable *Global); /// addLabelAddress - Add a dwarf label attribute data and value using /// either DW_FORM_addr or DW_FORM_GNU_addr_index. |