//===--- CGException.cpp - Emit LLVM Code for C++ exceptions --------------===////// The LLVM Compiler Infrastructure//// This file is distributed under the University of Illinois Open Source// License. See LICENSE.TXT for details.////===----------------------------------------------------------------------===////// This contains code dealing with C++ exception related code generation.////===----------------------------------------------------------------------===//#include"clang/AST/StmtCXX.h"#include"llvm/Intrinsics.h"#include"llvm/Support/CallSite.h"#include"CodeGenFunction.h"#include"CGException.h"#include"TargetInfo.h"usingnamespaceclang;usingnamespaceCodeGen;/// Push an entry of the given size onto this protected-scope stack.char*EHScopeStack::allocate(size_tSize){if(!StartOfBuffer){unsignedCapacity=1024;while(Capacity<Size)Capacity*=2;