This includes handling of new attributes for symbols & rpath.
In the event that an older format file is compared to tbd_v5, ignore these new attributes.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I got pinged on this due to the llvm-nm change, so I took a quick look through and spotted a few nits/test issues. Someone who is more knowledgeable about TAPI/TBD etc stuff should properly review though.
llvm/lib/TextAPI/Symbol.cpp | ||
---|---|---|
58–59 | ||
llvm/test/Object/nm-tapi.test | ||
71 | Aside: It was confusing that the llvm-nm related testing is not in the test/tools/llvm-nm folder, unlike most llvm-nm testing. Perhaps worth considering moving this test in a separate change? | |
llvm/test/tools/llvm-tapi-diff/v5.test | ||
4–5 | Presumably you need to add 2>&1 here to capture stderr for any warnings? | |
6 | Nit: duplicate blank line. | |
8 | Isn't this unnecessary? Won't llvm-tapi-diff fail with a non-zero exit code if it encounters and error? | |
24 | Nit: looks like you've got an extra trailing blank line. |
llvm/test/Object/nm-tapi.test | ||
---|---|---|
71 | Yes, that's fair. Thinking back, the rationale was testing the libObject changes indirectly but I can certainly move this to test/tools/llvm-nm in a followup patch to avoid confusion. | |
llvm/test/tools/llvm-tapi-diff/v5.test | ||
8 | llvm-tapi-diff currently doesn't emit any warnings so all errors are fatal. In these two invocations the tool shouldn't report any differences. |