From 6184febcda9b97cd053b2e7557a681a2d78625c8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 20 May 2005 03:25:47 +0000 Subject: Give the asmparser the ability to parse strings. Patch contributed by Alexander Friedman git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22146 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/AsmParser/Parser.cpp') diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index 0111ea35df..7bb4f0a362 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -42,6 +42,10 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename) { return Result; } +Module *llvm::ParseAssemblyString(const char * AsmString, Module * M) { + return RunVMAsmParser(AsmString, M); +} + //===------------------------------------------------------------------------=== // ParseException Class -- cgit v1.2.3