diff options
| author | Keno Fischer <kfischer@college.harvard.edu> | 2016-01-16 01:11:33 +0000 |
|---|---|---|
| committer | Keno Fischer <kfischer@college.harvard.edu> | 2016-01-16 01:11:33 +0000 |
| commit | f8eb6a14147315b076e1acc5340b776b631e6f78 (patch) | |
| tree | ba42c231fc73f23c6a97320e19a174da202f4a3b /llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h | |
| parent | 12b094d5f470da9f4fb16145ec3d8a7b1512ea77 (diff) | |
| download | bcm5719-llvm-f8eb6a14147315b076e1acc5340b776b631e6f78.tar.gz bcm5719-llvm-f8eb6a14147315b076e1acc5340b776b631e6f78.zip | |
[DwarfDebug] Move MergeValues to .cpp, NFC
llvm-svn: 257977
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h index bbe53249a08..b60ab9151ef 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h +++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h @@ -93,18 +93,7 @@ public: /// variable, merge them by appending Next's values to the current /// list of values. /// Return true if the merge was successful. - bool MergeValues(const DebugLocEntry &Next) { - if (Begin == Next.Begin) { - auto *Expr = cast_or_null<DIExpression>(Values[0].Expression); - auto *NextExpr = cast_or_null<DIExpression>(Next.Values[0].Expression); - if (Expr->isBitPiece() && NextExpr->isBitPiece()) { - addValues(Next.Values); - End = Next.End; - return true; - } - } - return false; - } + bool MergeValues(const DebugLocEntry &Next); /// \brief Attempt to merge this DebugLocEntry with Next and return /// true if the merge was successful. Entries can be merged if they |

