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

Side by Side Diff: src/IceELFObjectWriter.cpp

Issue 877003003: Subzero: Use a "known" version of clang-format. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add a clang-format blacklist. Fix formatting "errors". Created 5 years, 10 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
« no previous file with comments | « src/IceDefs.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16 matching lines...) Expand all
27 namespace { 27 namespace {
28 28
29 struct { 29 struct {
30 bool IsELF64; 30 bool IsELF64;
31 uint16_t ELFMachine; 31 uint16_t ELFMachine;
32 uint32_t ELFFlags; 32 uint32_t ELFFlags;
33 } ELFTargetInfo[] = { 33 } ELFTargetInfo[] = {
34 #define X(tag, str, is_elf64, e_machine, e_flags) \ 34 #define X(tag, str, is_elf64, e_machine, e_flags) \
35 { is_elf64, e_machine, e_flags } \ 35 { is_elf64, e_machine, e_flags } \
36 , 36 ,
37 TARGETARCH_TABLE 37 TARGETARCH_TABLE
38 #undef X 38 #undef X
39 }; 39 };
40 40
41 bool isELF64(TargetArch Arch) { 41 bool isELF64(TargetArch Arch) {
42 if (Arch < TargetArch_NUM) 42 if (Arch < TargetArch_NUM)
43 return ELFTargetInfo[Arch].IsELF64; 43 return ELFTargetInfo[Arch].IsELF64;
44 llvm_unreachable("Invalid target arch for isELF64"); 44 llvm_unreachable("Invalid target arch for isELF64");
45 return false; 45 return false;
46 } 46 }
47 47
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 if (IsELF64) { 444 if (IsELF64) {
445 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(), 445 writeELFHeaderInternal<true>(ShOffset, ShStrTab->getNumber(),
446 AllSections.size()); 446 AllSections.size());
447 } else { 447 } else {
448 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(), 448 writeELFHeaderInternal<false>(ShOffset, ShStrTab->getNumber(),
449 AllSections.size()); 449 AllSections.size());
450 } 450 }
451 } 451 }
452 452
453 } // end of namespace Ice 453 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceDefs.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698