since the class 'SymbolicFile ' do not have a is64Bit() API , when we need to check whether a SymbolicFile object is 64bit or not. we need to write a function to do it, it maybe cause duplication code.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Some nits, but this basically looks fine so far. Do we have testing that exercises each of the new methods?
llvm/include/llvm/Object/MachO.h | ||
---|---|---|
740 | I'm not sure there's a need to move the declaration? | |
llvm/include/llvm/Object/SymbolicFile.h | ||
161 | I think it would be better to make this a pure virtual function and force every implementation to specify the bitness of the object file (even if it's always 32-bit). Otherwise, when a new format comes along, it would be easy to forget to implement this function. | |
llvm/include/llvm/Object/TapiFile.h | ||
51–53 | Please leave these methods in the order they were in before. |
llvm/include/llvm/Object/MachO.h | ||
---|---|---|
740 | just move the all the override API together. |
I'm not sure there's a need to move the declaration?