[PATCH] D47032: Support: Simplify endian stream interface. NFCI.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 18 12:50:13 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rLLD332757: Support: Simplify endian stream interface. NFCI. (authored by pcc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D47032?vs=147396&id=147573#toc

Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D47032

Files:
  wasm/WriterUtils.cpp


Index: wasm/WriterUtils.cpp
===================================================================
--- wasm/WriterUtils.cpp
+++ wasm/WriterUtils.cpp
@@ -70,7 +70,7 @@
 
 void wasm::writeU32(raw_ostream &OS, uint32_t Number, const Twine &Msg) {
   debugWrite(OS.tell(), Msg + "[0x" + utohexstr(Number) + "]");
-  support::endian::Writer<support::little>(OS).write(Number);
+  support::endian::write(OS, Number, support::little);
 }
 
 void wasm::writeValueType(raw_ostream &OS, uint8_t Type, const Twine &Msg) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47032.147573.patch
Type: text/x-patch
Size: 508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180518/7d693c39/attachment.bin>


More information about the llvm-commits mailing list