Record original source range of generated source buffers into dumped files

This helps us establish where the code from a generated source buffer
would go, for external tools that don't understand serialized
diagnostics.
This commit is contained in:
Doug Gregor
2023-02-08 18:08:33 -08:00
parent 956e81c14e
commit c085f5afd9
2 changed files with 36 additions and 5 deletions

View File

@@ -129,6 +129,7 @@ public:
SourceManager(llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> FS =
llvm::vfs::getRealFileSystem())
: FileSystem(FS) {}
~SourceManager();
llvm::SourceMgr &getLLVMSourceMgr() {
return LLVMSourceMgr;