mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
stringref-ize the MemoryBuffer::get apis. This requires
a co-committed clang patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -56,7 +56,7 @@ Module *llvm::ParseAssemblyFile(const std::string &Filename, SMDiagnostic &Err,
|
||||
Module *llvm::ParseAssemblyString(const char *AsmString, Module *M,
|
||||
SMDiagnostic &Err, LLVMContext &Context) {
|
||||
MemoryBuffer *F =
|
||||
MemoryBuffer::getMemBuffer(AsmString, AsmString+strlen(AsmString),
|
||||
MemoryBuffer::getMemBuffer(StringRef(AsmString, strlen(AsmString)),
|
||||
"<string>");
|
||||
|
||||
return ParseAssembly(F, M, Err, Context);
|
||||
|
||||
Reference in New Issue
Block a user