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

Side by Side Diff: src/IceTypes.cpp

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/IceTypes.h ('k') | src/IceTypes.def » ('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.cpp - Primitive type properties ---------------===// 1 //===- subzero/src/IceTypes.cpp - Primitive type properties ---------------===//
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 a few attributes of Subzero primitive types. 10 // This file defines a few attributes of Subzero primitive types.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "IceDefs.h" 14 #include "IceDefs.h"
15 #include "IceTypes.h" 15 #include "IceTypes.h"
16 16
17 namespace Ice { 17 namespace Ice {
18 18
19 namespace { 19 namespace {
20 20
21 const char *TargetArchName[] = { 21 const char *TargetArchName[] = {
22 #define X(tag, str) str, 22 #define X(tag, str, is_elf64, e_machine, e_flags) str,
23 TARGETARCH_TABLE 23 TARGETARCH_TABLE
24 #undef X 24 #undef X
25 }; 25 };
26 26
27 // Show tags match between ICETYPE_TABLE and ICETYPE_PROPS_TABLE. 27 // Show tags match between ICETYPE_TABLE and ICETYPE_PROPS_TABLE.
28 28
29 // Define a temporary set of enum values based on ICETYPE_TABLE 29 // Define a temporary set of enum values based on ICETYPE_TABLE
30 enum { 30 enum {
31 #define X(tag, size, align, elts, elty, str) _table_tag_##tag, 31 #define X(tag, size, align, elts, elty, str) _table_tag_##tag,
32 ICETYPE_TABLE 32 ICETYPE_TABLE
33 #undef X 33 #undef X
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 IsFirst = false; 269 IsFirst = false;
270 } else { 270 } else {
271 Stream << ", "; 271 Stream << ", ";
272 } 272 }
273 Stream << ArgTy; 273 Stream << ArgTy;
274 } 274 }
275 Stream << ")"; 275 Stream << ")";
276 } 276 }
277 277
278 } // end of namespace Ice 278 } // end of namespace Ice
OLDNEW
« no previous file with comments | « src/IceTypes.h ('k') | src/IceTypes.def » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698