diff options
Diffstat (limited to 'llvm/lib/AsmParser/ParserInternals.h')
-rw-r--r-- | llvm/lib/AsmParser/ParserInternals.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/ParserInternals.h b/llvm/lib/AsmParser/ParserInternals.h index 20961357c88..b21dea7a078 100644 --- a/llvm/lib/AsmParser/ParserInternals.h +++ b/llvm/lib/AsmParser/ParserInternals.h @@ -22,10 +22,17 @@ #include "llvm/Assembly/Parser.h" #include "llvm/ADT/StringExtras.h" + // Global variables exported from the lexer... -extern std::FILE *llvmAsmin; + extern int llvmAsmlineno; +extern std::string &llvmAsmTextin; + +// functions exported from the lexer +void set_scan_file(FILE * F); +void set_scan_string (const char * str); + // Globals exported by the parser... extern char* llvmAsmtext; extern int llvmAsmleng; @@ -38,6 +45,9 @@ extern std::string CurFilename; class Module; Module *RunVMAsmParser(const std::string &Filename, FILE *F); +// Parse a string directly +Module *RunVMAsmParser(const char * AsmString, Module * M); + // UnEscapeLexed - Run through the specified buffer and change \xx codes to the // appropriate character. If AllowNull is set to false, a \00 value will cause |