Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: src/IceELFObjectWriter.cpp

Issue 974113002: Subzero: Rerun clang-format after LLVM 3.6 merge. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceELFObjectWriter.cpp - ELF object file writer --------===// 1 //===- subzero/src/IceELFObjectWriter.cpp - ELF object file writer --------===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file defines the writer for ELF relocatable object files. 10 // This file defines the writer for ELF relocatable object files.
(...skipping 18 matching lines...) Expand all
29 namespace { 29 namespace {
30 30
31 struct { 31 struct {
32 bool IsELF64; 32 bool IsELF64;
33 uint16_t ELFMachine; 33 uint16_t ELFMachine;
34 uint32_t ELFFlags; 34 uint32_t ELFFlags;
35 } ELFTargetInfo[] = { 35 } ELFTargetInfo[] = {
36 #define X(tag, str, is_elf64, e_machine, e_flags) \ 36 #define X(tag, str, is_elf64, e_machine, e_flags) \
37 { is_elf64, e_machine, e_flags } \ 37 { is_elf64, e_machine, e_flags } \
38 , 38 ,
39 TARGETARCH_TABLE 39 TARGETARCH_TABLE
40 #undef X 40 #undef X
41 }; 41 };
42 42
43 bool isELF64(TargetArch Arch) { 43 bool isELF64(TargetArch Arch) {
44 if (Arch < TargetArch_NUM) 44 if (Arch < TargetArch_NUM)
45 return ELFTargetInfo[Arch].IsELF64; 45 return ELFTargetInfo[Arch].IsELF64;
46 llvm_unreachable("Invalid target arch for isELF64"); 46 llvm_unreachable("Invalid target arch for isELF64");
47 return false; 47 return false;
48 } 48 }
49 49
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 if (IsELF64) { 617 if (IsELF64) {
618 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(), 618 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(),
619 AllSections.size()); 619 AllSections.size());
620 } else { 620 } else {
621 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(), 621 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(),
622 AllSections.size()); 622 AllSections.size());
623 } 623 }
624 } 624 }
625 625
626 } // end of namespace Ice 626 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698