diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:44:06 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-21 18:44:06 +0000 |
commit | 60635e39b669713fe8d7b40bf8b4b10fb7fb34d6 (patch) | |
tree | a0a124c763e644d915844e862e6216375674137f /llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h | |
parent | dadc2b627d834acda6def76209db2c2001a079a9 (diff) | |
download | bcm5719-llvm-60635e39b669713fe8d7b40bf8b4b10fb7fb34d6.tar.gz bcm5719-llvm-60635e39b669713fe8d7b40bf8b4b10fb7fb34d6.zip |
DebugInfo: Drop rest of DIDescriptor subclasses
Delete the remaining subclasses of (the already deleted) `DIDescriptor`.
Part of PR23080.
llvm-svn: 235404
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h index a2f6ae1eb73..ff3eb030a65 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h +++ b/llvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h @@ -72,7 +72,7 @@ public: const ConstantInt *getConstantInt() const { return Constant.CIP; } MachineLocation getLoc() const { return Loc; } bool isBitPiece() const { return getExpression()->isBitPiece(); } - DIExpression getExpression() const { return Expression; } + const MDExpression *getExpression() const { return Expression; } friend bool operator==(const Value &, const Value &); friend bool operator<(const Value &, const Value &); }; @@ -94,9 +94,8 @@ public: /// Return true if the merge was successful. bool MergeValues(const DebugLocEntry &Next) { if (Begin == Next.Begin) { - DIExpression Expr = cast_or_null<MDExpression>(Values[0].Expression); - DIExpression NextExpr = - cast_or_null<MDExpression>(Next.Values[0].Expression); + auto *Expr = cast_or_null<MDExpression>(Values[0].Expression); + auto *NextExpr = cast_or_null<MDExpression>(Next.Values[0].Expression); if (Expr->isBitPiece() && NextExpr->isBitPiece()) { addValues(Next.Values); End = Next.End; |