diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 54058a5..9a86cc7 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -1314,12 +1314,7 @@ bool LiveDebugVariables::runOnMachineFunction(MachineFunction &mf) { // Have we been asked to track variable locations using instruction // referencing? - bool InstrRef = false; - auto *TPC = getAnalysisIfAvailable<TargetPassConfig>(); - if (TPC) { - auto &TM = TPC->getTM<TargetMachine>(); - InstrRef = TM.Options.ValueTrackingVariableLocations; - } + bool InstrRef = mf.useDebugInstrRef(); if (!pImpl) pImpl = new LDVImpl(this); |