aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELFObjectFile.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2020-12-22 11:22:21 +0100
committerAlex Zinenko <zinenko@google.com>2020-12-22 23:34:54 +0100
commit8de43b926f0e960bbc5b6a53d1b613c46b7c774b (patch)
tree61938b5290f0ff7ede30ad99451e8629e9d8f43a /llvm/lib/Object/ELFObjectFile.cpp
parenta781a706b961a348006b604cdff8b555e62a2fcb (diff)
downloadllvm-8de43b926f0e960bbc5b6a53d1b613c46b7c774b.zip
llvm-8de43b926f0e960bbc5b6a53d1b613c46b7c774b.tar.gz
llvm-8de43b926f0e960bbc5b6a53d1b613c46b7c774b.tar.bz2
[mlir] Remove instance methods from LLVMType
LLVMType contains multiple instance methods that were introduced initially for compatibility with LLVM API. These methods boil down to `cast` followed by type-specific call. Arguably, they are mostly used in an LLVM cast-follows-isa anti-pattern. This doesn't connect nicely to the rest of the MLIR infrastructure and actively prevents it from making the LLVM dialect type system more open, e.g., reusing built-in types when appropriate. Remove such instance methods and replaces their uses with apporpriate casts and methods on derived classes. In some cases, the result may look slightly more verbose, but most cases should actually use a stricter subtype of LLVMType anyway and avoid the isa/cast. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D93680
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions