summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-07-06 00:38:59 +0000
committerJohn McCall <rjmccall@apple.com>2011-07-06 00:38:59 +0000
commit6dd2417dbeac1716e0c0af9e0c156d61f47850c1 (patch)
treebedd4531c7faf5de67451c952d4929b7cb5e919a
parent76b9d4da163747acd37c926af16393725f8f5c72 (diff)
downloadbcm5719-llvm-6dd2417dbeac1716e0c0af9e0c156d61f47850c1.tar.gz
bcm5719-llvm-6dd2417dbeac1716e0c0af9e0c156d61f47850c1.zip
Missing header from last commit; accidental change.
llvm-svn: 134455
-rw-r--r--clang/include/clang/Driver/ObjCRuntime.h39
-rw-r--r--clang/lib/Driver/Compilation.cpp1
2 files changed, 39 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/ObjCRuntime.h b/clang/include/clang/Driver/ObjCRuntime.h
new file mode 100644
index 00000000000..241354f15e8
--- /dev/null
+++ b/clang/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<Kind>(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/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp
index e15e40295c1..2657faa0d3a 100644
--- a/clang/lib/Driver/Compilation.cpp
+++ b/clang/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"
OpenPOWER on IntegriCloud