Change the MemoryBuffer::getFile* methods to take just a pointer to the
authorChris Lattner <sabre@nondot.org>
Tue, 1 Apr 2008 18:04:03 +0000 (18:04 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Apr 2008 18:04:03 +0000 (18:04 +0000)
commit038112a4e0a9afd656f415ab397a230ae5921627
tree1e533932de12cd50bf288f55438475ed736bdce8
parent8eedc9ee2ca3bb489957de68e3f907c88ca39efc
Change the MemoryBuffer::getFile* methods to take just a pointer to the
start of a filename, not a filename+length.  All clients can produce a
null terminated name, and the system api's require null terminated
strings anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49041 91177308-0d34-0410-b5e6-96231b3b80d8
14 files changed:
include/llvm/Support/MemoryBuffer.h
lib/Archive/Archive.cpp
lib/Archive/ArchiveWriter.cpp
lib/AsmParser/Parser.cpp
lib/Debugger/Debugger.cpp
lib/Linker/Linker.cpp
lib/Support/FileUtilities.cpp
lib/Support/MemoryBuffer.cpp
lib/VMCore/Core.cpp
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
tools/lto2/LTOCodeGenerator.cpp
tools/lto2/LTOModule.cpp
utils/TableGen/TGLexer.cpp
utils/TableGen/TableGen.cpp