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

Unified Diff: include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h

Issue 1191393004: Make function readNaClRecordTextAndBuildBitcode public. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h
diff --git a/include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h b/include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h
index d1b6748a6b545f5962bb61295a887df9c5d9f69c..0b749a87f38edeafe130c149093bdd543a64737c 100644
--- a/include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h
+++ b/include/llvm/Bitcode/NaCl/NaClBitcodeMungeUtils.h
@@ -111,6 +111,15 @@ std::error_code readNaClTextBcRecordList(
NaClBitcodeRecordList &RecordList,
std::unique_ptr<MemoryBuffer> InputBuffer);
+/// Read textual bitcode records from Filename, and fill Buffer with
+/// corresponding bitcode. Return error_code describing success of
+/// read. Verbose (if not nullptr) is used to generate more human
+/// readable error messages than the text in the returned error
+/// message.
+std::error_code readNaClRecordTextAndBuildBitcode(
+ StringRef Filename, SmallVectorImpl<char> &Buffer,
+ raw_ostream *Verbose = nullptr);
+
/// Write out RecordList (as text) to Buffer. Returns true when
/// successful. Error message are written to ErrStream.
bool writeNaClBitcodeRecordList(NaClBitcodeRecordList &RecordList,
« no previous file with comments | « no previous file | lib/Bitcode/NaCl/TestUtils/NaClBitcodeTextReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698