diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-08-22 00:58:04 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-08-22 00:58:04 +0000 |
commit | 59a20649c6d80c493900ca7874faca3d5e0f61af (patch) | |
tree | faac7c9ddc29e096dc23ba7b8b7e1dfdc6a268c9 /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 9f8bc029bdbcfd9ee76756d2690a59ea746ebe72 (diff) | |
download | bcm5719-llvm-59a20649c6d80c493900ca7874faca3d5e0f61af.tar.gz bcm5719-llvm-59a20649c6d80c493900ca7874faca3d5e0f61af.zip |
Untabify.
llvm-svn: 279408
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index f34e68721c0..e7507d29d17 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -252,8 +252,8 @@ static Error parseSegmentLoadCommand( if (Obj->getHeader().filetype != MachO::MH_DYLIB_STUB && Obj->getHeader().filetype != MachO::MH_DSYM && s.flags != MachO::S_ZEROFILL && - s.flags != MachO::S_THREAD_LOCAL_ZEROFILL && - S.fileoff == 0 && s.offset < SizeOfHeaders && s.size != 0) + s.flags != MachO::S_THREAD_LOCAL_ZEROFILL && S.fileoff == 0 && + s.offset < SizeOfHeaders && s.size != 0) return malformedError("offset field of section " + Twine(J) + " in " + CmdName + " command " + Twine(LoadCommandIndex) + " not past the headers of the file"); @@ -278,25 +278,24 @@ static Error parseSegmentLoadCommand( Twine(LoadCommandIndex) + " greater than the segment"); if (Obj->getHeader().filetype != MachO::MH_DYLIB_STUB && - Obj->getHeader().filetype != MachO::MH_DSYM && - s.size != 0 && s.addr < S.vmaddr) - return malformedError("addr field of section " + - Twine(J) + " in " + CmdName + " command " + - Twine(LoadCommandIndex) + - " less than the segment's vmaddr"); + Obj->getHeader().filetype != MachO::MH_DSYM && s.size != 0 && + s.addr < S.vmaddr) + return malformedError("addr field of section " + Twine(J) + " in " + + CmdName + " command " + Twine(LoadCommandIndex) + + " less than the segment's vmaddr"); BigSize = s.addr; BigSize += s.size; uint64_t BigEnd = S.vmaddr; BigEnd += S.vmsize; if (S.vmsize != 0 && s.size != 0 && BigSize > BigEnd) - return malformedError("addr field plus size of section " + - Twine(J) + " in " + CmdName + " command " + - Twine(LoadCommandIndex) + " greater than than " + return malformedError("addr field plus size of section " + Twine(J) + + " in " + CmdName + " command " + + Twine(LoadCommandIndex) + + " greater than than " "the segment's vmaddr plus vmsize"); if (s.reloff > FileSize) - return malformedError("reloff field of section " + - Twine(J) + " in " + CmdName + " command " + - Twine(LoadCommandIndex) + + return malformedError("reloff field of section " + Twine(J) + " in " + + CmdName + " command " + Twine(LoadCommandIndex) + " extends past the end of the file"); BigSize = s.nreloc; BigSize *= sizeof(struct MachO::relocation_info); @@ -305,7 +304,7 @@ static Error parseSegmentLoadCommand( return malformedError("reloff field plus nreloc field times sizeof(" "struct relocation_info) of section " + Twine(J) + " in " + CmdName + " command " + - Twine(LoadCommandIndex) + + Twine(LoadCommandIndex) + " extends past the end of the file"); } if (S.fileoff > FileSize) |