This is another patch that originated from the full GSYM patch https://reviews.llvm.org/D53379.
This patch adds encoding and decoding of the FunctionInfo objects along with full error handling and tests. Full details of the FunctionInfo encoding format appear in the FunctionInfo.h header file.
wrong license!