aboutsummaryrefslogtreecommitdiff
path: root/lib/AsmParser/Parser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-20 03:25:47 +0000
committerChris Lattner <sabre@nondot.org>2005-05-20 03:25:47 +0000
commit6184febcda9b97cd053b2e7557a681a2d78625c8 (patch)
tree24e787cd374e813d2f0539bed397e64c81ed5503 /lib/AsmParser/Parser.cpp
parent98c162a08635fbfc94196195bd8e73fef3196784 (diff)
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
Diffstat (limited to 'lib/AsmParser/Parser.cpp')
-rw-r--r--lib/AsmParser/Parser.cpp4
1 files changed, 4 insertions, 0 deletions
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