[llvm] [RemoveDIs] Print non-intrinsic debug info in textual IR output (PR #79281)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 11:42:53 PST 2024


================
@@ -23,6 +23,8 @@
 
 using namespace llvm;
 
+extern cl::opt<bool> WriteNewDbgInfoFormat;
----------------
MaskRay wrote:

Agree with the analysis. If you link the executable with [`ld.lld --warn-backrefs`](https://maskray.me/blog/2021-06-13-dependency-related-linker-options#warn-backrefs), you will get something like

```
error: backward reference detected: WriteNewDbgInfoFormat in llvm/_objs/Core/IRPrintingPasses.pic.o refers to llvm/_objs/IRPrinter/IRPrintingPasses.pic.o
```

(This is from a Bazel build).

https://github.com/llvm/llvm-project/pull/79281


More information about the llvm-commits mailing list