From 5cd91b513455fd7753e8815b54f0a49bbca6602d Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 8 Sep 2010 01:44:27 +0000 Subject: Implement ARM static local initialization guards, which are more compact than Itanium guards and use a slightly different compiled-in API. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113330 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGCXX.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/CodeGen/CGCXX.cpp') diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 179716f631..3dd5a75856 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -321,7 +321,7 @@ CodeGenFunction::BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type, /// Implementation for CGCXXABI. Possibly this should be moved into /// the incomplete ABI implementations? -CGCXXABI::~CGCXXABI() {} +void CGCXXABI::_anchor() {} static void ErrorUnsupportedABI(CodeGenFunction &CGF, llvm::StringRef S) { @@ -469,3 +469,9 @@ void CGCXXABI::ReadArrayCookie(CodeGenFunction &CGF, llvm::Value *Ptr, AllocPtr = llvm::Constant::getNullValue(CGF.Builder.getInt8PtrTy()); CookieSize = CharUnits::Zero(); } + +void CGCXXABI::EmitStaticLocalInit(CodeGenFunction &CGF, + const VarDecl &D, + llvm::GlobalVariable *GV) { + ErrorUnsupportedABI(CGF, "static local variable initialization"); +} -- cgit v1.2.3-18-g5258