2015-05-27 18:44:32 +00:00
|
|
|
//===-- GCStrategy.cpp - Garbage Collector Description --------------------===//
|
2009-06-02 17:52:33 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2015-05-27 18:44:32 +00:00
|
|
|
// This file implements the policy object GCStrategy which describes the
|
|
|
|
// behavior of a given garbage collector.
|
2009-06-02 17:52:33 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/CodeGen/GCStrategy.h"
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2015-05-27 18:44:32 +00:00
|
|
|
GCStrategy::GCStrategy()
|
|
|
|
: UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
|
|
|
|
CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
|
|
|
|
UsesMetadata(false) {}
|