blob: 554d326942e92769ccd2ddbc6d59eab0595fb68d [file] [log] [blame]
Philip Reamesf27f3732015-01-15 19:29:42 +00001//===-- GCStrategy.cpp - Garbage Collector Description --------------------===//
Gordon Henriksen37ca83d2007-09-29 02:13:43 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Gordon Henriksen37ca83d2007-09-29 02:13:43 +00007//
8//===----------------------------------------------------------------------===//
9//
Philip Reamesf27f3732015-01-15 19:29:42 +000010// This file implements the policy object GCStrategy which describes the
11// behavior of a given garbage collector.
Gordon Henriksend930f912008-08-17 18:44:35 +000012//
Gordon Henriksen37ca83d2007-09-29 02:13:43 +000013//===----------------------------------------------------------------------===//
14
Philip Reames56a03932015-01-26 18:26:35 +000015#include "llvm/CodeGen/GCStrategy.h"
NAKAMURA Takumi48340092015-01-25 15:05:36 +000016
Gordon Henriksen37ca83d2007-09-29 02:13:43 +000017using namespace llvm;
18
Philip Reamesb8714412015-01-15 19:39:17 +000019GCStrategy::GCStrategy()
20 : UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
Philip Reames36319532015-01-16 23:16:12 +000021 CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
22 UsesMetadata(false) {}