2015-01-15 19:29:42 +00:00
|
|
|
//===-- GCStrategy.cpp - Garbage Collector Description --------------------===//
|
2007-09-29 02:13:43 +00:00
|
|
|
//
|
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-09-29 02:13:43 +00:00
|
|
|
//
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
//
|
2015-01-15 19:29:42 +00:00
|
|
|
// This file implements the policy object GCStrategy which describes the
|
|
|
|
|
// behavior of a given garbage collector.
|
2008-08-17 18:44:35 +00:00
|
|
|
//
|
2007-09-29 02:13:43 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
2015-01-26 18:26:35 +00:00
|
|
|
#include "llvm/CodeGen/GCStrategy.h"
|
2015-01-25 15:05:36 +00:00
|
|
|
|
2007-09-29 02:13:43 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
2015-01-15 19:39:17 +00:00
|
|
|
GCStrategy::GCStrategy()
|
|
|
|
|
: UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
|
2015-01-16 23:16:12 +00:00
|
|
|
CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
|
|
|
|
|
UsesMetadata(false) {}
|