summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/GCStrategy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/GCStrategy.cpp')
-rw-r--r--llvm/lib/IR/GCStrategy.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/llvm/lib/IR/GCStrategy.cpp b/llvm/lib/IR/GCStrategy.cpp
new file mode 100644
index 00000000000..18723a0f514
--- /dev/null
+++ b/llvm/lib/IR/GCStrategy.cpp
@@ -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) {}
OpenPOWER on IntegriCloud