blob: 31ab86fdf276120203e35ec1dd10330809ff1a23 [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
John Brawn4d79ec72016-08-05 11:01:08 +000019LLVM_INSTANTIATE_REGISTRY(GCRegistry)
20
Philip Reamesb8714412015-01-15 19:39:17 +000021GCStrategy::GCStrategy()
22 : UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
Philip Reames36319532015-01-16 23:16:12 +000023 CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
24 UsesMetadata(false) {}