From 10c80e79963f26b0c3d155506376a8c0ab4472bd Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Tue, 22 Sep 2015 11:19:03 +0000 Subject: Prune trailing whitespaces. llvm-svn: 248265 --- llvm/lib/Object/MachOObjectFile.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index e8da6af5846..f89e8e48594 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -278,7 +278,7 @@ MachOObjectFile::MachOObjectFile(MemoryBufferRef Object, bool IsLittleEndian, return; } LinkOptHintsLoadCmd = Load.Ptr; - } else if (Load.C.cmd == MachO::LC_DYLD_INFO || + } else if (Load.C.cmd == MachO::LC_DYLD_INFO || Load.C.cmd == MachO::LC_DYLD_INFO_ONLY) { // Multiple dyldinfo load commands if (DyldInfoLoadCmd) { @@ -1235,7 +1235,7 @@ bool ExportEntry::operator==(const ExportEntry &Other) const { if (Stack[i].Start != Other.Stack[i].Start) return false; } - return true; + return true; } uint64_t ExportEntry::readULEB128(const uint8_t *&Ptr) { @@ -1296,7 +1296,7 @@ void ExportEntry::pushNode(uint64_t offset) { } else { State.Address = readULEB128(State.Current); if (State.Flags & MachO::EXPORT_SYMBOL_FLAGS_STUB_AND_RESOLVER) - State.Other = readULEB128(State.Current); + State.Other = readULEB128(State.Current); } } State.ChildCount = *Children; @@ -1366,7 +1366,7 @@ void ExportEntry::moveNext() { Done = true; } -iterator_range +iterator_range MachOObjectFile::exports(ArrayRef Trie) { ExportEntry Start(Trie); if (Trie.size() == 0) @@ -1377,7 +1377,7 @@ MachOObjectFile::exports(ArrayRef Trie) { ExportEntry Finish(Trie); Finish.moveToEnd(); - return iterator_range(export_iterator(Start), + return iterator_range(export_iterator(Start), export_iterator(Finish)); } @@ -2197,7 +2197,7 @@ MachOObjectFile::getLinkOptHintsLoadCommand() const { } ArrayRef MachOObjectFile::getDyldInfoRebaseOpcodes() const { - if (!DyldInfoLoadCmd) + if (!DyldInfoLoadCmd) return None; MachO::dyld_info_command DyldInfo = @@ -2208,7 +2208,7 @@ ArrayRef MachOObjectFile::getDyldInfoRebaseOpcodes() const { } ArrayRef MachOObjectFile::getDyldInfoBindOpcodes() const { - if (!DyldInfoLoadCmd) + if (!DyldInfoLoadCmd) return None; MachO::dyld_info_command DyldInfo = @@ -2219,7 +2219,7 @@ ArrayRef MachOObjectFile::getDyldInfoBindOpcodes() const { } ArrayRef MachOObjectFile::getDyldInfoWeakBindOpcodes() const { - if (!DyldInfoLoadCmd) + if (!DyldInfoLoadCmd) return None; MachO::dyld_info_command DyldInfo = @@ -2230,7 +2230,7 @@ ArrayRef MachOObjectFile::getDyldInfoWeakBindOpcodes() const { } ArrayRef MachOObjectFile::getDyldInfoLazyBindOpcodes() const { - if (!DyldInfoLoadCmd) + if (!DyldInfoLoadCmd) return None; MachO::dyld_info_command DyldInfo = @@ -2241,7 +2241,7 @@ ArrayRef MachOObjectFile::getDyldInfoLazyBindOpcodes() const { } ArrayRef MachOObjectFile::getDyldInfoExportsTrie() const { - if (!DyldInfoLoadCmd) + if (!DyldInfoLoadCmd) return None; MachO::dyld_info_command DyldInfo = -- cgit v1.2.3