Fix formatting in file

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6398 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-05-29 15:13:15 +00:00
parent ab2b328c78
commit e68e4d59e8

View File

@ -123,12 +123,12 @@ static Module *LoadSingleLibraryObject(const std::string &Filename) {
// archive file. It determines this by checking the magic string at the
// beginning of the file.
static bool IsArchive(const std::string &filename) {
static const std::string ArchiveMagic ("!<arch>\012");
std::string ArchiveMagic("!<arch>\012");
char buf[1 + ArchiveMagic.size()];
std::ifstream f(filename.c_str());
f.read(buf, ArchiveMagic.size());
buf[ArchiveMagic.size()] = '\0';
return (ArchiveMagic == buf);
return ArchiveMagic == buf;
}
// LoadLibraryExactName - This looks for a file with a known name and tries to