From: John McCall Date: Wed, 6 Jul 2011 00:38:59 +0000 (+0000) Subject: Missing header from last commit; accidental change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c06e0743431b28c96e0bbe27cc07851d2e0d2681;p=clang Missing header from last commit; accidental change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134455 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/ObjCRuntime.h b/include/clang/Driver/ObjCRuntime.h new file mode 100644 index 0000000000..241354f15e --- /dev/null +++ b/include/clang/Driver/ObjCRuntime.h @@ -0,0 +1,39 @@ +//===--- ObjCRuntime.h - Objective C runtime features -----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef CLANG_DRIVER_OBJCRUNTIME_H_ +#define CLANG_DRIVER_OBJCRUNTIME_H_ + +namespace clang { +namespace driver { + +class ObjCRuntime { +public: + enum Kind { GNU, NeXT }; +private: + unsigned RuntimeKind : 1; +public: + void setKind(Kind k) { RuntimeKind = k; } + Kind getKind() const { return static_cast(RuntimeKind); } + + /// True if the runtime provides native ARC entrypoints. ARC may + /// still be usable without this if the tool-chain provides a + /// statically-linked runtime support library. + unsigned HasARC : 1; + + /// True if the runtime supports ARC zeroing __weak. + unsigned HasWeak : 1; + + ObjCRuntime() : RuntimeKind(NeXT), HasARC(false), HasWeak(false) {} +}; + +} +} + +#endif diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index e15e40295c..2657faa0d3 100644 --- a/lib/Driver/Compilation.cpp +++ b/lib/Driver/Compilation.cpp @@ -13,7 +13,6 @@ #include "clang/Driver/ArgList.h" #include "clang/Driver/Driver.h" #include "clang/Driver/DriverDiagnostic.h" -#include "clang/Driver/ObjCRuntime.h" #include "clang/Driver/Options.h" #include "clang/Driver/ToolChain.h"