Remove error-prone methods of BinaryRef.
authorSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 23:55:26 +0000 (23:55 +0000)
committerSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 23:55:26 +0000 (23:55 +0000)
commit0d861a24d87306543e9dc3657584bb9b26d110cc
tree0da224a1abde5f09560811d7a167c5c25225f83f
parent4370ddb8b821bda66478160c1a1c5714a1877d85
Remove error-prone methods of BinaryRef.

A user shouldn't care about the internal state, and these methods by
their very nature require asserting a predicate on the internal state.
As such, they cannot be used safely without introducing hidden
long-distance dependencies on the manner of construction of the
BinaryRef.

Use writeAsBinary(raw_ostream &) and writeAsHex(raw_ostream &) if you
need to access the data in a binary or hex format.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183353 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/YAML.h