diff options
Diffstat (limited to 'lib/CodeGen/CGException.h')
-rw-r--r-- | lib/CodeGen/CGException.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/lib/CodeGen/CGException.h b/lib/CodeGen/CGException.h deleted file mode 100644 index d0216160d50f..000000000000 --- a/lib/CodeGen/CGException.h +++ /dev/null @@ -1,56 +0,0 @@ -//===-- CGException.h - Classes for exceptions IR generation ----*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// These classes support the generation of LLVM IR for exceptions in -// C++ and Objective C. -// -//===----------------------------------------------------------------------===// - -#ifndef CLANG_CODEGEN_CGEXCEPTION_H -#define CLANG_CODEGEN_CGEXCEPTION_H - -#include "llvm/ADT/StringRef.h" - -namespace clang { -class LangOptions; - -namespace CodeGen { - -/// The exceptions personality for a function. When -class EHPersonality { - StringRef PersonalityFn; - - // If this is non-null, this personality requires a non-standard - // function for rethrowing an exception after a catchall cleanup. - // This function must have prototype void(void*). - StringRef CatchallRethrowFn; - - EHPersonality(StringRef PersonalityFn, - StringRef CatchallRethrowFn = StringRef()) - : PersonalityFn(PersonalityFn), - CatchallRethrowFn(CatchallRethrowFn) {} - -public: - static const EHPersonality &get(const LangOptions &Lang); - static const EHPersonality GNU_C; - static const EHPersonality GNU_C_SJLJ; - static const EHPersonality GNU_ObjC; - static const EHPersonality GNU_ObjCXX; - static const EHPersonality NeXT_ObjC; - static const EHPersonality GNU_CPlusPlus; - static const EHPersonality GNU_CPlusPlus_SJLJ; - - StringRef getPersonalityFnName() const { return PersonalityFn; } - StringRef getCatchallRethrowFnName() const { return CatchallRethrowFn; } -}; - -} -} - -#endif |