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

Unified Diff: unittests/Bitcode/NaClMungeTest.h

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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « unittests/Bitcode/NaClBitReaderTest.cpp ('k') | unittests/Bitcode/NaClMungeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: unittests/Bitcode/NaClMungeTest.h
diff --git a/unittests/Bitcode/NaClMungeTest.h b/unittests/Bitcode/NaClMungeTest.h
index 52c7d93ddf3b2816e8db28de6cd58883e081d7bc..8d8b0263d63b8a3ebb0aad55dd42b1883566d6cd 100644
--- a/unittests/Bitcode/NaClMungeTest.h
+++ b/unittests/Bitcode/NaClMungeTest.h
@@ -25,6 +25,10 @@ const uint64_t Terminator = 0x5768798008978675LL;
#define ARRAY_TERM(name) ARRAY(name), Terminator
+// Removes error severity prefices, if present, for each line in the message.
+// Returns the stripped result.
+std::string stripErrorPrefix(const std::string &Message);
+
inline std::string stringify(llvm::NaClMungedBitcode &MungedBitcode) {
std::string Buffer;
llvm::raw_string_ostream StrBuf(Buffer);
« no previous file with comments | « unittests/Bitcode/NaClBitReaderTest.cpp ('k') | unittests/Bitcode/NaClMungeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698