mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add writeAsBinary(raw_ostream &) method to BinaryRef.
Previously, yaml2coff.cpp had a writeHexData static helper function to do this, but it is generally useful functionality. Also, validate hex strings up-front to avoid running having to handle errors "deep inside" the yaml2obj code (it also gives better diagnostics than it used to). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -48,6 +48,9 @@ public:
|
||||
|
||||
return Ref.isBinary == isBinary && Ref.Data == Data;
|
||||
}
|
||||
/// \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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user