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/Transforms/Utils/Local.cpp | |
parent | dadc2b627d834acda6def76209db2c2001a079a9 (diff) | |
download | llvm-60635e39b669713fe8d7b40bf8b4b10fb7fb34d6.zip llvm-60635e39b669713fe8d7b40bf8b4b10fb7fb34d6.tar.gz llvm-60635e39b669713fe8d7b40bf8b4b10fb7fb34d6.tar.bz2 |
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/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 5672a36..492dc07 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -978,7 +978,7 @@ unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign, /// /// See if there is a dbg.value intrinsic for DIVar before I. -static bool LdStHasDebugValue(DIVariable &DIVar, Instruction *I) { +static bool LdStHasDebugValue(const MDLocalVariable *DIVar, Instruction *I) { // Since we can't guarantee that the original dbg.declare instrinsic // is removed by LowerDbgDeclare(), we need to make sure that we are // not inserting the same dbg.value intrinsic over and over. @@ -998,8 +998,8 @@ static bool LdStHasDebugValue(DIVariable &DIVar, Instruction *I) { /// that has an associated llvm.dbg.decl intrinsic. bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, StoreInst *SI, DIBuilder &Builder) { - DIVariable DIVar = DDI->getVariable(); - DIExpression DIExpr = DDI->getExpression(); + auto *DIVar = DDI->getVariable(); + auto *DIExpr = DDI->getExpression(); assert(DIVar && "Missing variable"); if (LdStHasDebugValue(DIVar, SI)) @@ -1025,8 +1025,8 @@ bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, /// that has an associated llvm.dbg.decl intrinsic. bool llvm::ConvertDebugDeclareToDebugValue(DbgDeclareInst *DDI, LoadInst *LI, DIBuilder &Builder) { - DIVariable DIVar = DDI->getVariable(); - DIExpression DIExpr = DDI->getExpression(); + auto *DIVar = DDI->getVariable(); + auto *DIExpr = DDI->getExpression(); assert(DIVar && "Missing variable"); if (LdStHasDebugValue(DIVar, LI)) @@ -1075,9 +1075,9 @@ bool llvm::LowerDbgDeclare(Function &F) { // This is a call by-value or some other instruction that // takes a pointer to the variable. Insert a *value* // intrinsic that describes the alloca. - DIB.insertDbgValueIntrinsic(AI, 0, DIVariable(DDI->getVariable()), - DIExpression(DDI->getExpression()), - DDI->getDebugLoc(), CI); + DIB.insertDbgValueIntrinsic(AI, 0, DDI->getVariable(), + DDI->getExpression(), DDI->getDebugLoc(), + CI); } DDI->eraseFromParent(); } @@ -1103,8 +1103,8 @@ bool llvm::replaceDbgDeclareForAlloca(AllocaInst *AI, Value *NewAllocaAddress, if (!DDI) return false; DebugLoc Loc = DDI->getDebugLoc(); - DIVariable DIVar = DDI->getVariable(); - DIExpression DIExpr = DDI->getExpression(); + auto *DIVar = DDI->getVariable(); + auto *DIExpr = DDI->getExpression(); assert(DIVar && "Missing variable"); if (Deref) { |