================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to