[TextAPI] Fix & Add tests for tbd files version 3.
authorJuergen Ributzka <juergen@ributzka.de>
Mon, 12 Aug 2019 23:01:07 +0000 (23:01 +0000)
committerJuergen Ributzka <juergen@ributzka.de>
Mon, 12 Aug 2019 23:01:07 +0000 (23:01 +0000)
commitb978c51ce4e99978ba526e7a5b69fe110dba396b
treebb4f742cc2b7c5d9b512925f16dcca6f042bcb3b
parent3836874dbbf3840fb5286ae4336b29093eb0115e
[TextAPI] Fix & Add tests for tbd files version 3.

- There was a simple typo in TextStub code that prevented version 3 files to be read.
- Included a version 3 unit test to handle the differences in the format.
- Also a typo in Error.h inside the comments.

https://reviews.llvm.org/D66041

This patch is from Cyndy Ishida <cyndy_ishida@apple.com>.

llvm-svn: 368630
llvm/include/llvm/Support/Error.h
llvm/lib/TextAPI/MachO/TextStub.cpp
llvm/unittests/TextAPI/CMakeLists.txt
llvm/unittests/TextAPI/TextStubV3Tests.cpp [new file with mode: 0644]