xref: /NextBSD/contrib/llvm/lib/CodeGen/GCStrategy.cpp (revision 84d351007654069f9643c8e4b4802a7f5f08ee42)
1 //===-- GCStrategy.cpp - Garbage Collector Description --------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file implements the policy object GCStrategy which describes the
11 // behavior of a given garbage collector.
12 //
13 //===----------------------------------------------------------------------===//
14 
15 #include "llvm/CodeGen/GCStrategy.h"
16 
17 using namespace llvm;
18 
GCStrategy()19 GCStrategy::GCStrategy()
20     : UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
21       CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
22       UsesMetadata(false) {}
23