This format introduces new features and platforms
The motivation for this format is to support more than 1 platform since previous versions only supported additional architectures and 1 platform,
for example ios + ios-simulator and macCatalyst.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/TextAPI/MachO/TextStub.cpp | ||
---|---|---|
353 | Oops, I forgot to change this to a proper enum. Could you please fix this? |
llvm/lib/TextAPI/MachO/TextStub.cpp | ||
---|---|---|
352 | I don't think the context has to be an unsigned. Now that you have an enum, you can use that instead. Please also update the coder further down that sets the context. | |
355 | The switch statement could be improved by removing the default. That way the compiler will emit a warning if the switch statement isn't fully covered. There should also be a llvm_unreachable after the switch statement to catch unexpected values. | |
784 | nitpick: the order it quite random now. | |
816 | Factoring this out into a separate function would make this code easier to understand, because we fall-through to this code, but call the mappingTBD_V4 method in the other case. |
llvm/unittests/TextAPI/TextStubV4Tests.cpp | ||
---|---|---|
373 | for tbdv-4 should it be considered malformed to pass a float? as opposed to currently rounding |
llvm/unittests/TextAPI/TextStubV4Tests.cpp | ||
---|---|---|
373 | I wouldn't call it a float. It used to be the Swift version string in previous TBD versions and now it is the Swift ABI version, which is only an integer. Passing anything else for TBD v4 should be considered malformed. |
llvm/include/llvm/TextAPI/MachO/Symbol.h | ||
---|---|---|
56 | that is not very small ;-) 20 elements seem overkill for this. |
llvm/include/llvm/TextAPI/MachO/Symbol.h | ||
---|---|---|
56 | ill change it to 5! |
llvm/lib/TextAPI/MachO/Target.cpp | ||
---|---|---|
35 | Sorry, I just noticed that the simulators are missing in this list. Please add support for them and also matching tests. |
that is not very small ;-) 20 elements seem overkill for this.