mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Refactor common code from ParseAssemblyString and ParseAssemblyFile,
to expose a low-level interface for parsing from an existing MemoryBuffer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80803 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
namespace llvm {
|
||||
|
||||
class Module;
|
||||
class MemoryBuffer;
|
||||
class SMDiagnostic;
|
||||
class raw_ostream;
|
||||
class LLVMContext;
|
||||
@@ -48,6 +49,17 @@ Module *ParseAssemblyString(
|
||||
LLVMContext &Context
|
||||
);
|
||||
|
||||
/// This function is the low-level interface to the LLVM Assembly Parser.
|
||||
/// ParseAssemblyFile and ParseAssemblyString are wrappers around this function.
|
||||
/// @brief Parse LLVM Assembly from a MemoryBuffer.
|
||||
Module *ParseAssembly(
|
||||
MemoryBuffer *F, ///< The MemoryBuffer containing assembly
|
||||
const std::string &Name, ///< The name of the original source file
|
||||
Module *M, ///< A module to add the assembly too.
|
||||
SMDiagnostic &Err, ///< Error result info.
|
||||
LLVMContext &Context
|
||||
);
|
||||
|
||||
} // End llvm namespace
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user