summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2015-03-02 20:01:47 +0000
committerAdrian Prantl <aprantl@apple.com>2015-03-02 20:01:47 +0000
commitabb9192652318abfb70f6956f104f9af3665f310 (patch)
tree8c8e7f2532d537dae0a027a45ffcfea321cb6329 /llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
parentcfa8f24ec35c0582d471725a423e6ca2928b2ba0 (diff)
downloadbcm5719-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/AsmPrinterDwarf.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
index 1b4e4cfc4f8..d602660b3bd 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
@@ -16,7 +16,6 @@
#include "DwarfExpression.h"
#include "llvm/ADT/Twine.h"
#include "llvm/CodeGen/AsmPrinter.h"
-#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/MC/MCAsmInfo.h"
@@ -192,7 +191,7 @@ void AsmPrinter::EmitSectionOffset(const MCSymbol *Label,
/// EmitDwarfRegOp - Emit dwarf register operation.
void AsmPrinter::EmitDwarfRegOp(ByteStreamer &Streamer,
const MachineLocation &MLoc) const {
- DebugLocDwarfExpression Expr(*MF->getSubtarget().getRegisterInfo(),
+ DebugLocDwarfExpression Expr(*TM.getSubtargetImpl()->getRegisterInfo(),
getDwarfDebug()->getDwarfVersion(), Streamer);
const MCRegisterInfo *MRI = MMI->getContext().getRegisterInfo();
int Reg = MRI->getDwarfRegNum(MLoc.getReg(), false);
OpenPOWER on IntegriCloud