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

Side by Side Diff: unittest/BitcodeMunge.h

Issue 1217433002: Subzero: Enable errors for unused parameters. (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 //===- 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
19 #pragma clang diagnostic ignored "-Wunused-parameter"
18 #include "llvm/Bitcode/NaCl/NaClBitcodeMunge.h" 20 #include "llvm/Bitcode/NaCl/NaClBitcodeMunge.h"
21 #pragma clang diagnostic pop
19 22
20 #include "IceClFlags.h" 23 #include "IceClFlags.h"
21 24
22 namespace IceTest { 25 namespace IceTest {
23 26
24 // Class to run tests on Subzero's bitcode parser. Runs a Subzero 27 // Class to run tests on Subzero's bitcode parser. Runs a Subzero
25 // translation, using (possibly) edited bitcode record values. For 28 // translation, using (possibly) edited bitcode record values. For
26 // more details on how to represent the input arrays, see 29 // more details on how to represent the input arrays, see
27 // NaClBitcodeMunge.h. 30 // NaClBitcodeMunge.h.
28 class SubzeroBitcodeMunger : public llvm::NaClBitcodeMunger { 31 class SubzeroBitcodeMunger : public llvm::NaClBitcodeMunger {
(...skipping 19 matching lines...) Expand all
48 /// Flags to use to run tests. Use to change default assumptions. 51 /// Flags to use to run tests. Use to change default assumptions.
49 Ice::ClFlags Flags; 52 Ice::ClFlags Flags;
50 53
51 private: 54 private:
52 void resetMungeFlags(); 55 void resetMungeFlags();
53 }; 56 };
54 57
55 } // end of namespace IceTest 58 } // end of namespace IceTest
56 59
57 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H 60 #endif // SUBZERO_UNITTEST_BITCODEMUNGE_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698