diff options
| author | Adrian Prantl <aprantl@apple.com> | 2015-03-02 20:01:47 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2015-03-02 20:01:47 +0000 |
| commit | abb9192652318abfb70f6956f104f9af3665f310 (patch) | |
| tree | 8c8e7f2532d537dae0a027a45ffcfea321cb6329 /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
| parent | cfa8f24ec35c0582d471725a423e6ca2928b2ba0 (diff) | |
| download | bcm5719-llvm-abb9192652318abfb70f6956f104f9af3665f310.tar.gz bcm5719-llvm-abb9192652318abfb70f6956f104f9af3665f310.zip | |
Revert "For the dwarf expression code get the subtarget off of the current"
This reverts commit 230990 because also reverting 230975.
llvm-svn: 231003
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index ce394a85f02..56e8f11c16a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -17,7 +17,6 @@ #include "DwarfDebug.h" #include "DwarfExpression.h" #include "llvm/ADT/APFloat.h" -#include "llvm/CodeGen/MachineFunction.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DIBuilder.h" #include "llvm/IR/DataLayout.h" @@ -44,11 +43,11 @@ GenerateDwarfTypeUnits("generate-type-units", cl::Hidden, cl::desc("Generate DWARF4 type units."), cl::init(false)); -DIEDwarfExpression::DIEDwarfExpression(const AsmPrinter &AP, DwarfUnit &DU, - DIELoc &DIE) - : DwarfExpression(*AP.MF->getSubtarget().getRegisterInfo(), - AP.getDwarfDebug()->getDwarfVersion()), - AP(AP), DU(DU), DIE(DIE) {} +DIEDwarfExpression::DIEDwarfExpression(const AsmPrinter &AP, + DwarfUnit &DU, DIELoc &DIE) + : DwarfExpression(*AP.TM.getSubtargetImpl()->getRegisterInfo(), + AP.getDwarfDebug()->getDwarfVersion()), + AP(AP), DU(DU), DIE(DIE) {} void DIEDwarfExpression::EmitOp(uint8_t Op, const char* Comment) { DU.addUInt(DIE, dwarf::DW_FORM_data1, Op); |

