clang
3.9.0
|
#include "CGObjCRuntime.h"
#include "CGBlocks.h"
#include "CGCleanup.h"
#include "CGRecordLayout.h"
#include "CodeGenFunction.h"
#include "CodeGenModule.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/RecordLayout.h"
#include "clang/AST/StmtObjC.h"
#include "clang/Basic/LangOptions.h"
#include "clang/CodeGen/CGFunctionInfo.h"
#include "clang/Frontend/CodeGenOptions.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SetVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/IR/CallSite.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/IntrinsicInst.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/raw_ostream.h"
#include <cstdio>
Go to the source code of this file.
Functions | |
static llvm::Constant * | getConstantGEP (llvm::LLVMContext &VMContext, llvm::GlobalVariable *C, unsigned idx0, unsigned idx1) |
getConstantGEP() - Help routine to construct simple GEPs. More... | |
static bool | hasObjCExceptionAttribute (ASTContext &Context, const ObjCInterfaceDecl *OID) |
hasObjCExceptionAttribute - Return true if this class or any super class has the objc_exception attribute. More... | |
static bool | isWeakLinkedClass (const ObjCInterfaceDecl *ID) |
static Qualifiers::GC | GetGCAttrTypeForType (ASTContext &Ctx, QualType FQT, bool pointee=false) |
static bool | hasWeakMember (QualType type) |
static bool | hasMRCWeakIvars (CodeGenModule &CGM, const ObjCImplementationDecl *ID) |
For compatibility, we only want to set the "HasMRCWeakIvars" flag (and actually fill in a layout string) if we really do have any __weak ivars. More... | |
static void | addIfPresent (llvm::DenseSet< llvm::Value * > &S, llvm::Value *V) |
static void | addIfPresent (llvm::DenseSet< llvm::Value * > &S, Address V) |
static llvm::GlobalValue::DLLStorageClassTypes | getStorage (CodeGenModule &CGM, StringRef Name) |
Variables | |
static const int | ModuleVersion = 7 |
anonymous enum |
Enumerator | |
---|---|
kCFTaggedObjectID_Integer |
Definition at line 1771 of file CGObjCMac.cpp.
enum FragileClassFlags |
Definition at line 3153 of file CGObjCMac.cpp.
enum ImageInfoFlags |
EmitImageInfo - Emit the image info marker used to encode some module level information.
See: <rdr://4810609&4810587&4810587> struct IMAGE_INFO { unsigned version; unsigned flags; };
Enumerator | |
---|---|
eImageInfo_FixAndContinue | |
eImageInfo_GarbageCollected | |
eImageInfo_GCOnly | |
eImageInfo_OptimizedByDyld | |
eImageInfo_CorrectedSynthesize | |
eImageInfo_ImageIsSimulated | |
eImageInfo_ClassProperties |
Definition at line 4512 of file CGObjCMac.cpp.
enum NonFragileClassFlags |
Definition at line 3174 of file CGObjCMac.cpp.
|
static |
Definition at line 3884 of file CGObjCMac.cpp.
|
static |
Definition at line 3888 of file CGObjCMac.cpp.
References clang::CodeGen::Address::getPointer(), and clang::CodeGen::Address::isValid().
|
static |
getConstantGEP() - Help routine to construct simple GEPs.
Definition at line 1680 of file CGObjCMac.cpp.
|
static |
|
static |
Definition at line 5981 of file CGObjCMac.cpp.
Referenced by clang::OverloadedTemplateStorage::begin(), and clang::OverloadedTemplateStorage::end().
|
static |
For compatibility, we only want to set the "HasMRCWeakIvars" flag (and actually fill in a layout string) if we really do have any __weak ivars.
Definition at line 3222 of file CGObjCMac.cpp.
References clang::ObjCInterfaceDecl::all_declared_ivar_begin(), clang::ObjCImplDecl::getClassInterface(), clang::CodeGen::CodeGenModule::getLangOpts(), clang::ObjCIvarDecl::getNextIvar(), and hasWeakMember().
|
static |
hasObjCExceptionAttribute - Return true if this class or any super class has the objc_exception attribute.
Definition at line 1692 of file CGObjCMac.cpp.
References clang::ObjCInterfaceDecl::getSuperClass().
Definition at line 3204 of file CGObjCMac.cpp.
References clang::Type::getAs(), and clang::QualType::getObjCLifetime().
Referenced by hasMRCWeakIvars().
|
static |
Definition at line 1856 of file CGObjCMac.cpp.
References clang::ObjCInterfaceDecl::getSuperClass().
|
static |
Definition at line 4588 of file CGObjCMac.cpp.