diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 23:27:40 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 23:27:40 +0000 |
commit | e686f1591fde0d3394dd3be40d06281252f108fa (patch) | |
tree | 6f5e3ce7d39e4509af379d4bbe238e79e27ce2d6 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 6186fb2cd008ea9445ebc1dddced644cdbaeead5 (diff) | |
download | llvm-e686f1591fde0d3394dd3be40d06281252f108fa.zip llvm-e686f1591fde0d3394dd3be40d06281252f108fa.tar.gz llvm-e686f1591fde0d3394dd3be40d06281252f108fa.tar.bz2 |
CodeGen: Stop using DIDescriptor::is*() and auto-casting
Same as r234255, but for lib/CodeGen and lib/Target.
llvm-svn: 234258
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 69869fd..cf02e31 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -358,7 +358,7 @@ public: } // namespace void UserValue::print(raw_ostream &OS, const TargetRegisterInfo *TRI) { - DIVariable DV(Variable); + DIVariable DV = cast<MDLocalVariable>(Variable); OS << "!\""; DV.printExtendedName(OS); OS << "\"\t"; @@ -944,7 +944,8 @@ void UserValue::insertDebugValue(MachineBasicBlock *MBB, SlotIndex Idx, MachineOperand &Loc = locations[LocNo]; ++NumInsertedDebugValues; - assert(DIVariable(Variable)->isValidLocationForIntrinsic(getDebugLoc()) && + assert(cast<MDLocalVariable>(Variable) + ->isValidLocationForIntrinsic(getDebugLoc()) && "Expected inlined-at fields to agree"); if (Loc.isReg()) BuildMI(*MBB, I, getDebugLoc(), TII.get(TargetOpcode::DBG_VALUE), |