diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-18 22:41:20 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-05-14 11:45:57 +0000 |
| commit | d56accc7c3dcc897489b6a07834763a03b9f3d68 (patch) | |
| tree | 918f41a708218122215937f4ab4e68b1a942da68 /contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | |
| parent | 8885dff6cec52378084211fdd9366a73833eceee (diff) | |
| parent | 7eff647615f93a9aaff1997e1880b195dc3aabe6 (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | 5 |
1 files changed, 5 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 8f697611a82c..40770b15aa35 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp @@ -123,6 +123,11 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) { } bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) { + // Enable by default on x86_64, disable if explicitly turned off on cmdline. + if (T.getArch() == llvm::Triple::x86_64 && + ValueTrackingVariableLocations != cl::boolOrDefault::BOU_FALSE) + return true; + // Enable if explicitly requested on command line. return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE; } |
