summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit416a0d4c18b06b89d170979720e2f3e81268d59e (patch)
treeb661c83a0b9da771bfe1012ab003a17153ac90ea /llvm/lib/AsmParser/Parser.cpp
parent086f56c7f9f3bb43ceb7f85d19f1db5653b796ce (diff)
downloadbcm5719-llvm-416a0d4c18b06b89d170979720e2f3e81268d59e.tar.gz
bcm5719-llvm-416a0d4c18b06b89d170979720e2f3e81268d59e.zip
Give the asmparser the ability to parse strings. Patch contributed by
Alexander Friedman llvm-svn: 22146
Diffstat (limited to 'llvm/lib/AsmParser/Parser.cpp')
-rw-r--r--llvm/lib/AsmParser/Parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/Parser.cpp b/llvm/lib/AsmParser/Parser.cpp
index 0111ea35df1..7bb4f0a362f 100644
--- a/llvm/lib/AsmParser/Parser.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud