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

Side by Side Diff: unittest/BitcodeMunge.h

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 //===- BitcodeMunge.h - Subzero Bitcode Munger ------------------*- C++ -*-===// 1 //===- BitcodeMunge.h - Subzero Bitcode Munger ------------------*- C++ -*-===//
2 // 2 //
3 // The LLVM Compiler Infrastructure 3 // The LLVM Compiler Infrastructure
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 // Test harness for testing malformed bitcode files in Subzero. Uses NaCl's 10 // Test harness for testing malformed bitcode files in Subzero. Uses NaCl's
11 // bitcode munger to do this. 11 // bitcode munger to do this.
12 // 12 //
13 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===//
14 14
15 #ifndef SUBZERO_UNITTEST_BITCODEMUNGE_H 15 #ifndef SUBZERO_UNITTEST_BITCODEMUNGE_H
16 #define SUBZERO_UNITTEST_BITCODEMUNGE_H 16 #define SUBZERO_UNITTEST_BITCODEMUNGE_H
17 17
18 #pragma clang diagnostic push 18 #pragma clang diagnostic push
19 #pragma clang diagnostic ignored "-Wunused-parameter" 19 #pragma clang diagnostic ignored "-Wunused-parameter"
20 #pragma clang diagnostic ignored "-Wshadow"
20 #include "llvm/Bitcode/NaCl/NaClBitcodeMunge.h" 21 #include "llvm/Bitcode/NaCl/NaClBitcodeMunge.h"
21 #pragma clang diagnostic pop 22 #pragma clang diagnostic pop
22 23
23 #include "IceClFlags.h" 24 #include "IceClFlags.h"
24 25
25 namespace IceTest { 26 namespace IceTest {
26 27
27 // Class to run tests on Subzero's bitcode parser. Runs a Subzero 28 // Class to run tests on Subzero's bitcode parser. Runs a Subzero
28 // translation, using (possibly) edited bitcode record values. For 29 // translation, using (possibly) edited bitcode record values. For
29 // more details on how to represent the input arrays, see 30 // more details on how to represent the input arrays, see
(...skipping 21 matching lines...) Expand all
51 /// Flags to use to run tests. Use to change default assumptions. 52 /// Flags to use to run tests. Use to change default assumptions.
52 Ice::ClFlags Flags; 53 Ice::ClFlags Flags;
53 54
54 private: 55 private:
55 void resetMungeFlags(); 56 void resetMungeFlags();
56 }; 57 };
57 58
58 } // end of namespace IceTest 59 } // end of namespace IceTest
59 60
60 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H 61 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H
OLDNEW
« src/IceInst.h ('K') | « src/PNaClTranslator.cpp ('k') | unittest/IceELFSectionTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698