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

Side by Side Diff: src/IceTypes.h

Issue 678533005: Subzero: Add basic ELFObjectWriter (text section, symtab, strtab, headers) (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: minor cleanup Created 6 years 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/IceTranslator.cpp ('k') | src/IceTypes.cpp » ('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/IceTypes.h - Primitive ICE types -------------*- C++ -*-===// 1 //===- subzero/src/IceTypes.h - Primitive ICE types -------------*- C++ -*-===//
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 declares a few properties of the primitive types allowed 10 // This file declares a few properties of the primitive types allowed
(...skipping 10 matching lines...) Expand all
21 namespace Ice { 21 namespace Ice {
22 22
23 enum Type { 23 enum Type {
24 #define X(tag, size, align, elts, elty, str) tag, 24 #define X(tag, size, align, elts, elty, str) tag,
25 ICETYPE_TABLE 25 ICETYPE_TABLE
26 #undef X 26 #undef X
27 IceType_NUM 27 IceType_NUM
28 }; 28 };
29 29
30 enum TargetArch { 30 enum TargetArch {
31 #define X(tag, str) tag, 31 #define X(tag, str, is_elf64, e_machine, e_flags) tag,
32 TARGETARCH_TABLE 32 TARGETARCH_TABLE
33 #undef X 33 #undef X
34 TargetArch_NUM 34 TargetArch_NUM
35 }; 35 };
36 36
37 const char *targetArchString(TargetArch Arch); 37 const char *targetArchString(TargetArch Arch);
38 38
39 inline Ostream &operator<<(Ostream &Stream, TargetArch Arch) { 39 inline Ostream &operator<<(Ostream &Stream, TargetArch Arch) {
40 return Stream << targetArchString(Arch); 40 return Stream << targetArchString(Arch);
41 } 41 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 }; 142 };
143 143
144 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) { 144 inline Ostream &operator<<(Ostream &Stream, const FuncSigType &Sig) {
145 Sig.dump(Stream); 145 Sig.dump(Stream);
146 return Stream; 146 return Stream;
147 } 147 }
148 148
149 } // end of namespace Ice 149 } // end of namespace Ice
150 150
151 #endif // SUBZERO_SRC_ICETYPES_H 151 #endif // SUBZERO_SRC_ICETYPES_H
OLDNEW
« no previous file with comments | « src/IceTranslator.cpp ('k') | src/IceTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698