diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-21 18:45:05 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-06-21 18:45:05 +0000 |
commit | 9f2a4eed0d9d83c34321ce5a53c21d39e3201542 (patch) | |
tree | 18366f122b7fb66297b5238d3023dbad3cfc0d43 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 5dd34744c5c04fdbbf4d1fb3f00c2502ecc5162f (diff) | |
download | bcm5719-llvm-9f2a4eed0d9d83c34321ce5a53c21d39e3201542.tar.gz bcm5719-llvm-9f2a4eed0d9d83c34321ce5a53c21d39e3201542.zip |
IRGen for implementation of init-priority attribute.
Test case will be checked in llvm test suite.
(finishes off radar 8076356).
llvm-svn: 106441
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 35383301e0c..0bb9d4ded93 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -139,6 +139,11 @@ class CodeGenModule : public BlockModule { /// CXXGlobalInits - Global variables with initializers that need to run /// before main. std::vector<llvm::Constant*> CXXGlobalInits; + + /// - Global variables with initializers whose order of initialization + /// is set by init_priority attribute. + llvm::SmallVector<std::pair<unsigned int, llvm::Function*>, 8> + PrioritizedCXXGlobalInits; /// CXXGlobalDtors - Global destructor functions and arguments that need to /// run on termination. |