summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/YAML.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing #include's to cctype when using isdigit/alpha/etc.Will Dietz2013-10-121-0/+1
| | | | llvm-svn: 192519
* YAMLTraits.h: replace DenseMap that used a bad implementation of DenseMapInfoDmitri Gribenko2013-08-071-0/+1
| | | | | | | | | | for StringRef with a StringMap The bug is that the empty key compares equal to the tombstone key. Also added an assertion to DenseMap to catch similar bugs in future. llvm-svn: 187866
* Make BinaryRef output correctly in case of empty data.Sean Silva2013-07-091-0/+4
| | | | | | | Previously, it would simply output nothing, but it should output an empty string `""`. llvm-svn: 185894
* Use isxdigit.Rafael Espindola2013-06-071-9/+1
| | | | | | Thanks to Benjamin Kramer for the suggestion. llvm-svn: 183540
* Add writeAsHex(raw_ostream &) method to BinaryRef.Sean Silva2013-06-051-7/+14
| | | | | | | This hides the implementation. A future commit will remove the error-prone getHex() and getBinary() methods. llvm-svn: 183352
* Rename BinaryRef::isBinary to more descriptive DataIsHexString.Sean Silva2013-06-051-1/+1
| | | | | | And add a doxygen comment. llvm-svn: 183350
* Add writeAsBinary(raw_ostream &) method to BinaryRef.Sean Silva2013-06-051-0/+29
| | | | | | | | | | | 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). llvm-svn: 183345
* Move BinaryRef to a new include/llvm/Object/YAML.h file.Rafael Espindola2013-06-051-0/+34
It will be used for ELF dumping too. llvm-svn: 183287
OpenPOWER on IntegriCloud