From 5a5ac124e1efaf208671f01c46edb15f29ed2a0b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Wed, 27 May 2015 18:44:32 +0000 Subject: Vendor import of llvm trunk r238337: https://llvm.org/svn/llvm-project/llvm/trunk@238337 --- lib/CodeGen/StatepointExampleGC.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/CodeGen/StatepointExampleGC.cpp') diff --git a/lib/CodeGen/StatepointExampleGC.cpp b/lib/CodeGen/StatepointExampleGC.cpp index 802cf132b34df..95dfd75018c13 100644 --- a/lib/CodeGen/StatepointExampleGC.cpp +++ b/lib/CodeGen/StatepointExampleGC.cpp @@ -12,7 +12,7 @@ // suitable as a default implementation usable with any collector which can // consume the standard stackmap format generated by statepoints, uses the // default addrespace to distinguish between gc managed and non-gc managed -// pointers, and has reasonable relocation semantics. +// pointers, and has reasonable relocation semantics. // //===----------------------------------------------------------------------===// @@ -33,21 +33,22 @@ public: NeededSafePoints = 0; UsesMetadata = false; CustomRoots = false; - CustomSafePoints = false; } Optional isGCManagedPointer(const Value *V) const override { // Method is only valid on pointer typed values. PointerType *PT = cast(V->getType()); // For the sake of this example GC, we arbitrarily pick addrspace(1) as our // GC managed heap. We know that a pointer into this heap needs to be - // updated and that no other pointer does. + // updated and that no other pointer does. Note that addrspace(1) is used + // only as an example, it has no special meaning, and is not reserved for + // GC usage. return (1 == PT->getAddressSpace()); } }; } -static GCRegistry::Add -X("statepoint-example", "an example strategy for statepoint"); +static GCRegistry::Add X("statepoint-example", + "an example strategy for statepoint"); namespace llvm { void linkStatepointExampleGC() {} -- cgit v1.2.3