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

Side by Side Diff: unittests/Bitcode/NaClMungeWriteErrorTests.cpp

Issue 1310883003: Install notion of diagnostic handler into PNaCl bitcode readers. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: Fix issues in patch set 2. Created 5 years, 3 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
« no previous file with comments | « unittests/Bitcode/NaClMungeTest.cpp ('k') | unittests/Bitcode/NaClParseInstsTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « unittests/Bitcode/NaClMungeTest.cpp ('k') | unittests/Bitcode/NaClParseInstsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698