| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |