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

Side by Side Diff: src/IceELFSection.cpp

Issue 1221643012: Subzero: Add -Wshadow to the build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes 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
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 /// \file 10 /// \file
11 /// This file defines how ELF sections are represented. 11 /// This file defines how ELF sections are represented.
12 /// 12 ///
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #include "IceELFSection.h" 15 #include "IceELFSection.h"
16 16
17 #include "IceDefs.h" 17 #include "IceDefs.h"
18 #include "IceELFStreamer.h" 18 #include "IceELFStreamer.h"
19
20 #pragma clang diagnostic push
21 #pragma clang diagnostic ignored "-Wunused-parameter"
22 #pragma clang diagnostic ignored "-Wshadow"
19 #include "llvm/Support/MathExtras.h" 23 #include "llvm/Support/MathExtras.h"
24 #pragma clang diagnostic pop
20 25
21 using namespace llvm::ELF; 26 using namespace llvm::ELF;
22 27
23 namespace Ice { 28 namespace Ice {
24 29
25 // Text sections. 30 // Text sections.
26 31
27 void ELFTextSection::appendData(ELFStreamer &Str, 32 void ELFTextSection::appendData(ELFStreamer &Str,
28 const llvm::StringRef MoreData) { 33 const llvm::StringRef MoreData) {
29 Str.writeBytes(MoreData); 34 Str.writeBytes(MoreData);
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 continue; 219 continue;
215 } 220 }
216 StringIndex.second = StringData.size(); 221 StringIndex.second = StringData.size();
217 std::copy(Cur.begin(), Cur.end(), back_inserter(StringData)); 222 std::copy(Cur.begin(), Cur.end(), back_inserter(StringData));
218 StringData.push_back(0); 223 StringData.push_back(0);
219 Prev = Cur; 224 Prev = Cur;
220 } 225 }
221 } 226 }
222 227
223 } // end of namespace Ice 228 } // end of namespace Ice
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698