Skip to content

Commit 7212b4a

Browse files
committed
[RemoveDIs] Remove unused debug-printing facility for DPMarkers
We originally thought that printing the DPMarker pointer after each instruction was going to be useful, but it turns out it only serves to generate spurious test output differences now. As it stands, the cannonical way to debug RemoveDIs metadata is "dumpDbgValues".
1 parent 79fec2f commit 7212b4a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/lib/IR/AsmWriter.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4092,12 +4092,6 @@ void AssemblyWriter::printInfoComment(const Value &V) {
40924092

40934093
if (AnnotationWriter) {
40944094
AnnotationWriter->printInfoComment(V, Out);
4095-
} else if (const Instruction *I = dyn_cast<Instruction>(&V)) {
4096-
if (I->DbgMarker) {
4097-
// In the new, experimental DPValue representation of debug-info, print
4098-
// out which instructions have DPMarkers and where they are.
4099-
Out << "; dbgmarker @ " << I->DbgMarker;
4100-
}
41014095
}
41024096
}
41034097

0 commit comments

Comments
 (0)