X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=lib%2FAsmParser%2FParser.cpp;h=0005e11737b8e781c4e79c80dd3231168da7555a;hb=629c1a3f78494d0dd769fe82bd2bd17df0555843;hp=6dbb60f135cb8a7f202a22cf4e213d383c7064d6;hpb=8e3a8e0452695643d04c21e15c94b802aef81bae;p=oota-llvm.git diff --git a/lib/AsmParser/Parser.cpp b/lib/AsmParser/Parser.cpp index 6dbb60f135c..0005e11737b 100644 --- a/lib/AsmParser/Parser.cpp +++ b/lib/AsmParser/Parser.cpp @@ -2,8 +2,8 @@ // // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // @@ -14,6 +14,7 @@ #include "ParserInternals.h" #include "llvm/Module.h" #include "llvm/Support/MemoryBuffer.h" +#include using namespace llvm; @@ -21,8 +22,7 @@ ParseError* TheParseError = 0; /// FIXME: Not threading friendly Module *llvm::ParseAssemblyFile(const std::string &Filename, ParseError* Err) { std::string ErrorStr; - MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size(), - &ErrorStr); + MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(), &ErrorStr); if (F == 0) { if (Err) Err->setError(Filename, "Could not open input file '" + Filename + "'");