commit | d124ee6cfcb90229e7121fe81742d23a05375ce8 | [log] [tgz] |
---|---|---|
author | Zonr Chang <zonr@google.com> | Fri Oct 22 18:26:25 2010 +0800 |
committer | Zonr Chang <zonr@google.com> | Fri Oct 22 18:26:25 2010 +0800 |
tree | d20d4e92a811ba2d3f4b33c6f52e88958a16b14c | |
parent | b1771ef128b10c4d4575634828006bfba20b1d9c [diff] |
Always output zero-terminator in slangdata.py. Output one more byte '\0' can be useful when the input data file is a bitcode file. With the existence of '\0', we can use llvm::MemoryBuffer::getMemBuffer() instead of llvm::MemoryBuffer::getMemBufferCopy() to prepare buffer for llvm::ParseBitcodeFile(llvm::MemoryBuffer, ...).