diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp b/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp index 691977dc34e6..8f697611a82c 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp @@ -40,6 +40,10 @@ static cl::opt<bool>                                "normal DBG_VALUE inputs"),                       cl::init(false)); +static cl::opt<cl::boolOrDefault> ValueTrackingVariableLocations( +    "experimental-debug-variable-locations", +    cl::desc("Use experimental new value-tracking variable locations")); +  // Options to prevent pathological compile-time behavior. If InputBBLimit and  // InputDbgValueLimit are both exceeded, range extension is disabled.  static cl::opt<unsigned> InputBBLimit( @@ -117,3 +121,8 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) {    return TheImpl->ExtendRanges(MF, DomTree, TPC, InputBBLimit,                                 InputDbgValueLimit);  } + +bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) { +  // Enable if explicitly requested on command line. +  return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE; +}  | 
