| OLD | NEW | 
|---|
| 1 //===- llvm/unittest/Bitcode/NaClMungeWriteErrorTests.cpp -----------------===// | 1 //===- llvm/unittest/Bitcode/NaClMungeWriteErrorTests.cpp -----------------===// | 
| 2 //     Tests parser for PNaCl bitcode instructions. | 2 //     Tests parser for PNaCl bitcode instructions. | 
| 3 // | 3 // | 
| 4 //                     The LLVM Compiler Infrastructure | 4 //                     The LLVM Compiler Infrastructure | 
| 5 // | 5 // | 
| 6 // This file is distributed under the University of Illinois Open Source | 6 // This file is distributed under the University of Illinois Open Source | 
| 7 // License. See LICENSE.TXT for details. | 7 // License. See LICENSE.TXT for details. | 
| 8 // | 8 // | 
| 9 //===----------------------------------------------------------------------===// | 9 //===----------------------------------------------------------------------===// | 
| 10 | 10 | 
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 59     "          |                             |                   // BlockID " | 59     "          |                             |                   // BlockID " | 
| 60     "= 12\n" | 60     "= 12\n" | 
| 61     "      56:0|    3: <1, 1>                |    blocks 1;\n" | 61     "      56:0|    3: <1, 1>                |    blocks 1;\n" | 
| 62     "          |                             |  %b0:\n" | 62     "          |                             |  %b0:\n" | 
| 63     "      58:4|    3: <10>                  |    ret void;\n" | 63     "      58:4|    3: <10>                  |    ret void;\n" | 
| 64     "      60:2|  0: <65534>                 |  }\n" | 64     "      60:2|  0: <65534>                 |  }\n" | 
| 65     "      64:0|0: <65534>                   |}\n" | 65     "      64:0|0: <65534>                   |}\n" | 
| 66     ; | 66     ; | 
| 67 | 67 | 
| 68 const char *UnableToContinue = | 68 const char *UnableToContinue = | 
| 69       "Error: Unable to generate bitcode file due to write errors\n"; | 69     "error: Unable to generate bitcode file due to write errors\n"; | 
| 70 | 70 | 
| 71 const char *NoErrorRecoveryMessages = ""; | 71 const char *NoErrorRecoveryMessages = ""; | 
| 72 | 72 | 
| 73 // Runs write munging tests on BitcodeRecords with the given Edits. It | 73 // Runs write munging tests on BitcodeRecords with the given Edits. It | 
| 74 // then parses the written bitcode.  ErrorMessages is the expected | 74 // then parses the written bitcode.  ErrorMessages is the expected | 
| 75 // error messages logged by the write munging, when no error recovery | 75 // error messages logged by the write munging, when no error recovery | 
| 76 // is allowed. ErrorRecoveryMessages are messages, in addition to | 76 // is allowed. ErrorRecoveryMessages are messages, in addition to | 
| 77 // ErrorMessages, when the writer applies error recovery. | 77 // ErrorMessages, when the writer applies error recovery. | 
| 78 void CheckParseEdits(const uint64_t *Edits, size_t EditsSize, | 78 void CheckParseEdits(const uint64_t *Edits, size_t EditsSize, | 
| 79                      std::string ErrorMessages, | 79                      std::string ErrorMessages, | 
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 833       "       1: [65535, 4294967295, 3]\n" | 833       "       1: [65535, 4294967295, 3]\n" | 
| 834       "         3: [8, 1, 0, 0, 0]\n" | 834       "         3: [8, 1, 0, 0, 0]\n" | 
| 835       "         1: [65535, 12, 2]\n" | 835       "         1: [65535, 12, 2]\n" | 
| 836       "           3: [1, 1]\n" | 836       "           3: [1, 1]\n" | 
| 837       "           3: [10]\n" | 837       "           3: [10]\n" | 
| 838       "         0: [65534]\n" | 838       "         0: [65534]\n" | 
| 839       "       0: [65534]\n"); | 839       "       0: [65534]\n"); | 
| 840 } | 840 } | 
| 841 | 841 | 
| 842 } // end of namespace naclmungetest | 842 } // end of namespace naclmungetest | 
| OLD | NEW | 
|---|