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

Side by Side Diff: src/IceELFObjectWriter.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Changes All Subzero includes to match LLVM style guide. Created 5 years, 6 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.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "llvm/Support/MathExtras.h" 14 #include "IceELFObjectWriter.h"
15 15
16 #include "IceAssembler.h" 16 #include "IceAssembler.h"
17 #include "IceDefs.h" 17 #include "IceDefs.h"
18 #include "IceELFObjectWriter.h"
19 #include "IceELFSection.h" 18 #include "IceELFSection.h"
20 #include "IceELFStreamer.h" 19 #include "IceELFStreamer.h"
21 #include "IceGlobalContext.h" 20 #include "IceGlobalContext.h"
22 #include "IceGlobalInits.h" 21 #include "IceGlobalInits.h"
23 #include "IceOperand.h" 22 #include "IceOperand.h"
23 #include "llvm/Support/MathExtras.h"
24 24
25 using namespace llvm::ELF; 25 using namespace llvm::ELF;
26 26
27 namespace Ice { 27 namespace Ice {
28 28
29 namespace { 29 namespace {
30 30
31 struct { 31 struct {
32 bool IsELF64; 32 bool IsELF64;
33 uint16_t ELFMachine; 33 uint16_t ELFMachine;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 if (ELF64) { 617 if (ELF64) {
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