23 SrcMgr.takeSourceBuffersFrom(InputSrcMgr);
30 auto *MainFileBuffer =
SrcMgr.getMemoryBuffer(
SrcMgr.getMainFileID());
31 Records.saveInputFilename(MainFileBuffer->getBufferIdentifier().str());
Defines the virtual file system interface vfs::FileSystem.
This class represents success/failure for parsing-like operations that find it important to chain tog...
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
void * getDiagContext() const
ArrayRef< std::string > getIncludeDirs() const
Return the include directories of this source manager.
DiagHandlerTy getDiagHandler() const
IntrusiveRefCntPtr< vfs::FileSystem > getVirtualFileSystem() const
void takeSourceBuffersFrom(SourceMgr &SrcMgr, SMLoc MainBufferIncludeLoc=SMLoc())
Takes the source buffers from the given source manager and append them to the current manager.
This is an optimization pass for GlobalISel generic memory operations.
bool TableGenParseFile(SourceMgr &InputSrcMgr, RecordKeeper &Records)
Parse the TableGen file defined within the main buffer of the given SourceMgr.