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

Side by Side Diff: src/IceELFSection.cpp

Issue 1202253002: Includes module header first. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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/IceELFSection.cpp - Representation of ELF sections -----===// 1 //===- subzero/src/IceELFSection.cpp - Representation of ELF sections -----===//
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 how ELF sections are represented. 10 // This file defines how ELF sections are represented.
11 // 11 //
12 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===//
13 13
14 #include "IceELFSection.h"
15
14 #include "llvm/Support/MathExtras.h" 16 #include "llvm/Support/MathExtras.h"
15 17
16 #include "IceDefs.h" 18 #include "IceDefs.h"
17 #include "IceELFSection.h"
18 #include "IceELFStreamer.h" 19 #include "IceELFStreamer.h"
19 20
20 using namespace llvm::ELF; 21 using namespace llvm::ELF;
21 22
22 namespace Ice { 23 namespace Ice {
23 24
24 // Text sections. 25 // Text sections.
25 26
26 void ELFTextSection::appendData(ELFStreamer &Str, 27 void ELFTextSection::appendData(ELFStreamer &Str,
27 const llvm::StringRef MoreData) { 28 const llvm::StringRef MoreData) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 continue; 214 continue;
214 } 215 }
215 StringIndex.second = StringData.size(); 216 StringIndex.second = StringData.size();
216 std::copy(Cur.begin(), Cur.end(), back_inserter(StringData)); 217 std::copy(Cur.begin(), Cur.end(), back_inserter(StringData));
217 StringData.push_back(0); 218 StringData.push_back(0);
218 Prev = Cur; 219 Prev = Cur;
219 } 220 }
220 } 221 }
221 222
222 } // end of namespace Ice 223 } // end of namespace Ice
OLDNEW
« src/IceConverter.cpp ('K') | « src/IceELFObjectWriter.cpp ('k') | src/IceFixups.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698