From d27f02261442a15b0edb627023a8568735b2d110 Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Mon, 24 Jan 2022 17:52:52 +0000 Subject: [PATCH] [NFC][DebugInfo] Strip out an undesired #if 0 block As mentioned in discussion of D116821, it's better to just delete this block than keep it hanging around. --- llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp index 3149729..8f69761 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp @@ -123,14 +123,6 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) { } bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) { - // Enable by default on x86_64, disable if explicitly turned off on cmdline. - // Disabled while https://reviews.llvm.org/D116821 is investigated. -#if 0 - if (T.getArch() == llvm::Triple::x86_64 && - ValueTrackingVariableLocations != cl::boolOrDefault::BOU_FALSE) - return true; -#endif - - // Otherwise: enable if explicitly requested on command line. + // Enable if explicitly requested on command line. return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE; } -- 2.7.4