diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-07-22 00:53:05 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-07-22 00:53:05 +0000 |
commit | 1a711b169619e1109cb9affed650f8f12ae85f6e (patch) | |
tree | 9a98befc44b4d58db315ee12e854b5e7426ef2d0 /clang/lib/Sema/Sema.cpp | |
parent | e1aaced0cb0ee4888800bb4a705caa76a7cf9ea4 (diff) | |
download | llvm-1a711b169619e1109cb9affed650f8f12ae85f6e.zip llvm-1a711b169619e1109cb9affed650f8f12ae85f6e.tar.gz llvm-1a711b169619e1109cb9affed650f8f12ae85f6e.tar.bz2 |
-fms-extensions: Implement half of #pragma init_seg
Summary:
This pragma is very rare. We could *hypothetically* lower some uses of
it down to @llvm.global_ctors, but given that GlobalOpt isn't able to
optimize prioritized global ctors today, there's really no point.
If we wanted to do this in the future, I would check if the section used
in the pragma started with ".CRT$XC" and had up to two characters after
it. Those two characters could form the 16-bit initialization priority
that we support in @llvm.global_ctors. We would have to teach LLVM to
lower prioritized global ctors on COFF as well.
This should let us compile some silly uses of this pragma in WebKit /
Blink.
Reviewers: rsmith, majnemer
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D4549
llvm-svn: 213593
Diffstat (limited to 'clang/lib/Sema/Sema.cpp')
-rw-r--r-- | clang/lib/Sema/Sema.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp index 478c34f..2c65332 100644 --- a/clang/lib/Sema/Sema.cpp +++ b/clang/lib/Sema/Sema.cpp @@ -87,7 +87,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer, LangOpts.getMSPointerToMemberRepresentationMethod()), VtorDispModeStack(1, MSVtorDispAttr::Mode(LangOpts.VtorDispMode)), DataSegStack(nullptr), BSSSegStack(nullptr), ConstSegStack(nullptr), - CodeSegStack(nullptr), VisContext(nullptr), + CodeSegStack(nullptr), CurInitSeg(nullptr), VisContext(nullptr), IsBuildingRecoveryCallExpr(false), ExprNeedsCleanups(false), LateTemplateParser(nullptr), OpaqueParser(nullptr), IdResolver(pp), StdInitializerList(nullptr), |