Move the visitor classes that are used to traverse non-trivial C structs
authorAkira Hatanaka <ahatanaka@apple.com>
Tue, 17 Apr 2018 19:05:17 +0000 (19:05 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Tue, 17 Apr 2018 19:05:17 +0000 (19:05 +0000)
commit52a84e750a87d8d1d8fc41ce58e14f62af002850
treedcf964f22b03056281b6a35f6d8e9f1c487c6f10
parent145d95c9647987a635c7598f3b888546c0445c72
Move the visitor classes that are used to traverse non-trivial C structs
to a header file.

This is in preparation for using the visitor classes to warn about
memcpy'ing non-trivial C structs.

See the discussion here:
https://reviews.llvm.org/D45310

rdar://problem/36124208

llvm-svn: 330201
clang/include/clang/AST/NonTrivialTypeVisitor.h [new file with mode: 0644]
clang/lib/CodeGen/CGNonTrivialStruct.cpp