22 SrcMgr.takeSourceBuffersFrom(InputSrcMgr);
28 auto *MainFileBuffer =
SrcMgr.getMemoryBuffer(
SrcMgr.getMainFileID());
29 Records.saveInputFilename(MainFileBuffer->getBufferIdentifier().str());
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
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.