[llvm-branch-commits] [llvm] [llvm-debuginfo-analyzer] Add support for LLVM IR format. (PR #135440)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu May 1 07:58:59 PDT 2025


================
@@ -56,6 +61,17 @@ Error LVReaderHandler::createReader(StringRef Filename, LVReaders &Readers,
       return std::make_unique<LVCodeViewReader>(Filename, FileFormatName, Pdb,
                                                 W, ExePath);
     }
+    if (isa<IRObjectFile *>(Input)) {
+      IRObjectFile *Ir = cast<IRObjectFile *>(Input);
+      return std::make_unique<LVIRReader>(Filename, FileFormatName, Ir, W);
+    }
+    if (isa<MemoryBufferRef *>(Input)) {
+      // If the filename extension is '.ll' create a IR reader.
----------------
jmorse wrote:

```suggestion
      // If the filename extension is '.ll' create an IR reader.
```

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


More information about the llvm-branch-commits mailing list