summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2016-10-27 09:12:20 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2016-10-27 09:12:20 +0000
commit188ad3ac02d06cab3ca13241196a3e110f845439 (patch)
tree64d1e8a23339337e0b9bfd6acaca8b374af45852 /clang/lib/CodeGen/CodeGenModule.h
parent9d61e14771e52134091441f147590d6094a8c65e (diff)
downloadbcm5719-llvm-188ad3ac02d06cab3ca13241196a3e110f845439.tar.gz
bcm5719-llvm-188ad3ac02d06cab3ca13241196a3e110f845439.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 30ccae648ac..bdd2026db28 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -1209,10 +1209,10 @@ private:
llvm::Constant *AssociatedData = nullptr);
void AddGlobalDtor(llvm::Function *Dtor, int Priority = 65535);
- /// Generates a global array of functions and priorities using the given list
- /// and name. This array will have appending linkage and is suitable for use
- /// as a LLVM constructor or destructor array.
- void EmitCtorList(const CtorList &Fns, const char *GlobalName);
+ /// EmitCtorList - Generates a global array of functions and priorities using
+ /// the given list and name. This array will have appending linkage and is
+ /// suitable for use as a LLVM constructor or destructor array. Clears Fns.
+ void EmitCtorList(CtorList &Fns, const char *GlobalName);
/// Emit any needed decls for which code generation was deferred.
void EmitDeferred();
OpenPOWER on IntegriCloud