diff options
author | Adrian Prantl <aprantl@apple.com> | 2015-02-10 23:18:28 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2015-02-10 23:18:28 +0000 |
commit | ca7e4702211a8cd6c65785089f6f782901323a0b (patch) | |
tree | 9695c25b0aceb425434ab140798e565fcfeb5cb3 /llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | |
parent | d49691f77989cf74c29e4c7b7217b52ed5beac94 (diff) | |
download | bcm5719-llvm-ca7e4702211a8cd6c65785089f6f782901323a0b.tar.gz bcm5719-llvm-ca7e4702211a8cd6c65785089f6f782901323a0b.zip |
Debug Info: Support variables that are described by more than one MMI
table entry. This happens when SROA splits up an alloca and the resulting
allocas cannot be lowered to SSA values because their address is passed
to a function.
Fixes PR22502.
llvm-svn: 228764
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfFile.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfFile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h index f14d673bf6a..35bf33ab958 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfFile.h @@ -95,7 +95,8 @@ public: /// \brief Returns the string pool. DwarfStringPool &getStringPool() { return StrPool; } - void addScopeVariable(LexicalScope *LS, DbgVariable *Var); + /// \returns false if the variable was merged with a previous one. + bool addScopeVariable(LexicalScope *LS, DbgVariable *Var); DenseMap<LexicalScope *, SmallVector<DbgVariable *, 8>> &getScopeVariables() { return ScopeVariables; |