[cfe-commits] r134455 - in /cfe/trunk: include/clang/Driver/ObjCRuntime.h lib/Driver/Compilation.cpp

John McCall rjmccall at apple.com
Tue Jul 5 17:38:59 PDT 2011


Author: rjmccall
Date: Tue Jul  5 19:38:59 2011
New Revision: 134455

URL: http://llvm.org/viewvc/llvm-project?rev=134455&view=rev
Log:
Missing header from last commit; accidental change.


Added:
    cfe/trunk/include/clang/Driver/ObjCRuntime.h
Modified:
    cfe/trunk/lib/Driver/Compilation.cpp

Added: cfe/trunk/include/clang/Driver/ObjCRuntime.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ObjCRuntime.h?rev=134455&view=auto
==============================================================================
--- cfe/trunk/include/clang/Driver/ObjCRuntime.h (added)
+++ cfe/trunk/include/clang/Driver/ObjCRuntime.h Tue Jul  5 19:38:59 2011
@@ -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

Modified: cfe/trunk/lib/Driver/Compilation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Compilation.cpp?rev=134455&r1=134454&r2=134455&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Compilation.cpp (original)
+++ cfe/trunk/lib/Driver/Compilation.cpp Tue Jul  5 19:38:59 2011
@@ -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"
 





More information about the cfe-commits mailing list