diff options
author | Eric Christopher <echristo@gmail.com> | 2015-03-13 00:38:19 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-03-13 00:38:19 +0000 |
commit | 5ab3b79ba8f4fd7c081026ec143f555a4c97346b (patch) | |
tree | c40d90fc6a17df25d8db942e07d5f29cf5530ed3 /llvm/lib/CodeGen | |
parent | f2d44ca8e258e44058eaaa64e07fa3400c2e2ca2 (diff) | |
download | bcm5719-llvm-5ab3b79ba8f4fd7c081026ec143f555a4c97346b.tar.gz bcm5719-llvm-5ab3b79ba8f4fd7c081026ec143f555a4c97346b.zip |
Use the cached subtarget off of the machine function.
llvm-svn: 232128
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 8d14781871b..a88f6ecff1f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -1517,9 +1517,9 @@ static void emitDebugLocValue(const AsmPrinter &AP, const DebugLocEntry::Value &Value, unsigned PieceOffsetInBits) { DIVariable DV = Value.getVariable(); - DebugLocDwarfExpression DwarfExpr( - *AP.TM.getSubtargetImpl()->getRegisterInfo(), - AP.getDwarfDebug()->getDwarfVersion(), Streamer); + DebugLocDwarfExpression DwarfExpr(*AP.MF->getSubtarget().getRegisterInfo(), + AP.getDwarfDebug()->getDwarfVersion(), + Streamer); // Regular entry. if (Value.isInt()) { DIBasicType BTy(DV.getType().resolve(TypeIdentifierMap)); @@ -1570,9 +1570,9 @@ void DebugLocEntry::finalize(const AsmPrinter &AP, assert(Offset <= PieceOffset && "overlapping or duplicate pieces"); if (Offset < PieceOffset) { // The DWARF spec seriously mandates pieces with no locations for gaps. - DebugLocDwarfExpression Expr( - *AP.TM.getSubtargetImpl()->getRegisterInfo(), - AP.getDwarfDebug()->getDwarfVersion(), Streamer); + DebugLocDwarfExpression Expr(*AP.MF->getSubtarget().getRegisterInfo(), + AP.getDwarfDebug()->getDwarfVersion(), + Streamer); Expr.AddOpPiece(PieceOffset-Offset, 0); Offset += PieceOffset-Offset; } |