[llvm] [llvm-debuginfo-analyzer] Add support for LLVM IR format. (PR #135440)
Javier Lopez-Gomez via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 3 08:01:22 PDT 2025
================
@@ -190,11 +206,11 @@ Error LVReaderHandler::handleBuffer(LVReaders &Readers, StringRef Filename,
return handleFile(Readers, PdbPath.get(), Filename);
}
- Expected<std::unique_ptr<Binary>> BinOrErr = createBinary(Buffer);
+ LLVMContext Context;
+ Expected<std::unique_ptr<Binary>> BinOrErr = createBinary(Buffer, &Context);
if (errorToErrorCode(BinOrErr.takeError())) {
- return createStringError(errc::not_supported,
- "Binary object format in '%s' is not supported.",
- Filename.str().c_str());
+ // Assume it is textual representation (IR or C/C++ source code).
----------------
jalopezg-git wrote:
```suggestion
// Assume it is LLVM IR textual representation.
```
https://github.com/llvm/llvm-project/pull/135440
More information about the llvm-commits
mailing list