mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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:
parent
ab2b328c78
commit
e68e4d59e8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user