[llvm][TextAPI] add equality operator for InterfaceFile
authorSam Powell <sam@sampowell.dev>
Thu, 18 Feb 2021 19:27:54 +0000 (11:27 -0800)
committerCyndy Ishida <cyndy_ishida@apple.com>
Thu, 18 Feb 2021 19:53:08 +0000 (11:53 -0800)
commiteb2eeeb76f7a294b2a8ddd6d09aafe1402ed9348
tree0ac312a46ba4a5d1e861c98c1d715819271fe5ff
parent508aa69e9dbcf4b4de1876cb1b0e9d2c1dbc176f
[llvm][TextAPI] add equality operator for InterfaceFile

This patch adds functionality to compare for the equality between `InterfaceFile`s based on attributes specific to linking.

Reviewed By: cishida, steven_wu

Differential Revision: https://reviews.llvm.org/D96629
llvm/include/llvm/TextAPI/MachO/InterfaceFile.h
llvm/include/llvm/TextAPI/MachO/Symbol.h
llvm/lib/TextAPI/MachO/InterfaceFile.cpp
llvm/unittests/TextAPI/TextStubHelpers.h
llvm/unittests/TextAPI/TextStubV3Tests.cpp
llvm/unittests/TextAPI/TextStubV4Tests.cpp