Move ownership of GCStrategy objects to LLVMContext
[oota-llvm.git] / lib / IR / GCStrategy.cpp
diff --git a/lib/IR/GCStrategy.cpp b/lib/IR/GCStrategy.cpp
new file mode 100644 (file)
index 0000000..18723a0
--- /dev/null
@@ -0,0 +1,22 @@
+//===-- GCStrategy.cpp - Garbage Collector Description --------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements the policy object GCStrategy which describes the
+// behavior of a given garbage collector.
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/IR/GCStrategy.h"
+
+using namespace llvm;
+
+GCStrategy::GCStrategy()
+    : UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
+      CustomWriteBarriers(false), CustomRoots(false),
+      InitRoots(true), UsesMetadata(false) {}