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

Side by Side Diff: src/IceELFStreamer.h

Issue 1216963007: Doxygenize the documentation comments (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase to master Created 5 years, 5 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/IceELFSection.cpp ('k') | src/IceFixups.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/IceELFStreamer.h - Low level ELF writing -----*- C++ -*-===// 1 //===- subzero/src/IceELFStreamer.h - Low level ELF writing -----*- 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 // Interface for serializing bits for common ELF types (words, extended words, 10 /// \file
11 // etc.), based on the ELF Class. 11 /// Interface for serializing bits for common ELF types (words, extended words,
12 // 12 /// etc.), based on the ELF Class.
13 ///
13 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===//
14 15
15 #ifndef SUBZERO_SRC_ICEELFSTREAMER_H 16 #ifndef SUBZERO_SRC_ICEELFSTREAMER_H
16 #define SUBZERO_SRC_ICEELFSTREAMER_H 17 #define SUBZERO_SRC_ICEELFSTREAMER_H
17 18
18 #include "IceDefs.h" 19 #include "IceDefs.h"
19 20
20 namespace Ice { 21 namespace Ice {
21 22
22 // Low level writer that can that can handle ELFCLASS32/64. 23 /// Low level writer that can that can handle ELFCLASS32/64.
23 // Little endian only for now. 24 /// Little endian only for now.
24 class ELFStreamer { 25 class ELFStreamer {
25 ELFStreamer() = delete; 26 ELFStreamer() = delete;
26 ELFStreamer(const ELFStreamer &) = delete; 27 ELFStreamer(const ELFStreamer &) = delete;
27 ELFStreamer &operator=(const ELFStreamer &) = delete; 28 ELFStreamer &operator=(const ELFStreamer &) = delete;
28 29
29 public: 30 public:
30 explicit ELFStreamer(Fdstream &Out) : Out(Out) {} 31 explicit ELFStreamer(Fdstream &Out) : Out(Out) {}
31 32
32 void write8(uint8_t Value) { Out << char(Value); } 33 void write8(uint8_t Value) { Out << char(Value); }
33 34
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 void seek(uint64_t Off) { Out.seek(Off); } 81 void seek(uint64_t Off) { Out.seek(Off); }
81 82
82 private: 83 private:
83 Fdstream &Out; 84 Fdstream &Out;
84 }; 85 };
85 86
86 } // end of namespace Ice 87 } // end of namespace Ice
87 88
88 #endif // SUBZERO_SRC_ICEELFSTREAMER_H 89 #endif // SUBZERO_SRC_ICEELFSTREAMER_H
OLDNEW
« no previous file with comments | « src/IceELFSection.cpp ('k') | src/IceFixups.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698