diff options
author | Vedant Kumar <vsk@apple.com> | 2016-10-20 18:44:14 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2016-10-20 18:44:14 +0000 |
commit | 2d38ae6c415c92207239ce3be11c244dd3ddba66 (patch) | |
tree | 9e3e0385850556e4d8e5c3dcf3fda8319b55d8d8 /clang/lib/Lex/ModuleMap.cpp | |
parent | b625d17db804ff389c0be469ac646f7edc0452ff (diff) | |
download | llvm-2d38ae6c415c92207239ce3be11c244dd3ddba66.zip llvm-2d38ae6c415c92207239ce3be11c244dd3ddba66.tar.gz llvm-2d38ae6c415c92207239ce3be11c244dd3ddba66.tar.bz2 |
[CodeGen] Devirtualize calls to methods marked final in a derived class
If we see a virtual method call to Base::foo() but can infer that the
object is an instance of Derived, and that 'foo' is marked 'final' in
Derived, we can devirtualize the call to Derived::foo().
Differential Revision: https://reviews.llvm.org/D25813
llvm-svn: 284766
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions