Skip to content

Commit d27f022

Browse files
committed
[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.
1 parent 38e16e1 commit d27f022

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

llvm/lib/CodeGen/LiveDebugValues/LiveDebugValues.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,6 @@ bool LiveDebugValues::runOnMachineFunction(MachineFunction &MF) {
123123
}
124124

125125
bool llvm::debuginfoShouldUseDebugInstrRef(const Triple &T) {
126-
// Enable by default on x86_64, disable if explicitly turned off on cmdline.
127-
// Disabled while https://reviews.llvm.org/D116821 is investigated.
128-
#if 0
129-
if (T.getArch() == llvm::Triple::x86_64 &&
130-
ValueTrackingVariableLocations != cl::boolOrDefault::BOU_FALSE)
131-
return true;
132-
#endif
133-
134-
// Otherwise: enable if explicitly requested on command line.
126+
// Enable if explicitly requested on command line.
135127
return ValueTrackingVariableLocations == cl::boolOrDefault::BOU_TRUE;
136128
}

0 commit comments

Comments
 (0)