GCStrategy.cpp 807 B

12345678910111213141516171819202122
  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. #include "llvm/CodeGen/GCStrategy.h"
  15. using namespace llvm;
  16. GCStrategy::GCStrategy()
  17. : UseStatepoints(false), NeededSafePoints(0), CustomReadBarriers(false),
  18. CustomWriteBarriers(false), CustomRoots(false), InitRoots(true),
  19. UsesMetadata(false) {}