48 "Could not open input file: " + ec.message());
static MemoryBuffer * getMemBuffer(StringRef InputData, StringRef BufferName="", bool RequiresNullTerminator=true)
The main container class for the LLVM Intermediate Representation.
bool Run()
Run: module ::= toplevelentity*.
Module * ParseAssembly(MemoryBuffer *F, Module *M, SMDiagnostic &Err, LLVMContext &Context)
Parse LLVM Assembly from a MemoryBuffer. This function always takes ownership of the MemoryBuffer...
virtual const char * getBufferIdentifier() const
static error_code getFileOrSTDIN(StringRef Filename, OwningPtr< MemoryBuffer > &result, int64_t FileSize=-1)
size_t strlen(const char *s);
Module * ParseAssemblyString(const char *AsmString, Module *M, SMDiagnostic &Error, LLVMContext &Context)
Parse LLVM Assembly from a string.
Module * ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Error, LLVMContext &Context)
Parse LLVM Assembly from a file.
Represents a location in source code.
size_t AddNewSourceBuffer(MemoryBuffer *F, SMLoc IncludeLoc)