[llvm] d27f022 - [NFC][DebugInfo] Strip out an undesired #if 0 block

Jeremy Morse via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 10:05:16 PST 2022


Author: Jeremy Morse
Date: 2022-01-24T18:04:47Z
New Revision: d27f02261442a15b0edb627023a8568735b2d110

URL: https://github.com/llvm/llvm-project/commit/d27f02261442a15b0edb627023a8568735b2d110
DIFF: https://github.com/llvm/llvm-project/commit/d27f02261442a15b0edb627023a8568735b2d110.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp b/llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp
index 3149729b9231..8f697611a82c 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;
 }


        


More information about the llvm-commits mailing list