Empty the CtorLists/DtorLists once emitted.
authorVassil Vassilev <v.g.vassilev@gmail.com>
Thu, 27 Oct 2016 09:12:20 +0000 (09:12 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Thu, 27 Oct 2016 09:12:20 +0000 (09:12 +0000)
commit188ad3ac02d06cab3ca13241196a3e110f845439
tree64d1e8a23339337e0b9bfd6acaca8b374af45852
parent9d61e14771e52134091441f147590d6094a8c65e
Empty the CtorLists/DtorLists once emitted.

This is essential when clang is running in incremental processing mode because
we don't want to reemit the 'tors over and over again.

Patch by Axel Naumann!

Reviewed by Richard Smith and me. (https://reviews.llvm.org/D25605)

llvm-svn: 285277
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h