diff options
author | Sean Silva <silvas@purdue.edu> | 2013-06-05 23:47:23 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-06-05 23:47:23 +0000 |
commit | 4370ddb8b821bda66478160c1a1c5714a1877d85 (patch) | |
tree | 9632d15c08a003962b84c09394459c9d8825a53f /include | |
parent | c170230b3a8c1e0a43614a929061ad24888bfe52 (diff) | |
download | external_llvm-4370ddb8b821bda66478160c1a1c5714a1877d85.zip external_llvm-4370ddb8b821bda66478160c1a1c5714a1877d85.tar.gz external_llvm-4370ddb8b821bda66478160c1a1c5714a1877d85.tar.bz2 |
Add writeAsHex(raw_ostream &) method to BinaryRef.
This hides the implementation. A future commit will remove the
error-prone getHex() and getBinary() methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/YAML.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Object/YAML.h b/include/llvm/Object/YAML.h index 41fe952..e349e35 100644 --- a/include/llvm/Object/YAML.h +++ b/include/llvm/Object/YAML.h @@ -61,6 +61,11 @@ public: /// \brief Write the contents (regardless of whether it is binary or a /// hex string) as binary to the given raw_ostream. void writeAsBinary(raw_ostream &OS) const; + /// \brief Write the contents (regardless of whether it is binary or a + /// hex string) as hex to the given raw_ostream. + /// + /// For example, a possible output could be `DEADBEEFCAFEBABE`. + void writeAsHex(raw_ostream &OS) const; }; } |