[llvm] [MC][AsmParser]: Don't use SourceMgr::AddIncludeFile when opening .incbin files (PR #194254)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 2 07:39:34 PDT 2026
================
@@ -246,6 +261,28 @@ RealFile::getBuffer(const Twine &Name, int64_t FileSize,
IsVolatile);
}
+ErrorOr<std::unique_ptr<MemoryBuffer>>
+RealFile::getSliceBuffer(const Twine &Name, int64_t Offset, int64_t Count,
----------------
SergeantCooper wrote:
I did this because getBuffer used the same for FileSize
https://github.com/llvm/llvm-project/pull/194254
More information about the llvm-commits
mailing list