summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StatepointExampleGC.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-01-16 23:21:07 +0000
committerPhilip Reames <listmail@philipreames.com>2015-01-16 23:21:07 +0000
commit287987ca1358470b3c723f2b2892c0693700e5be (patch)
tree81418d5317e504fcff4cd1d77b3f639dca14a159 /llvm/lib/CodeGen/StatepointExampleGC.cpp
parent8bfb5544cf7c85b1d0eb80e4ce1ff7d0d80119f1 (diff)
downloadbcm5719-llvm-287987ca1358470b3c723f2b2892c0693700e5be.tar.gz
bcm5719-llvm-287987ca1358470b3c723f2b2892c0693700e5be.zip
Update a comment
Be a bit more explicit about the fact that addrspace(1) is not reserved. llvm-svn: 226344
Diffstat (limited to 'llvm/lib/CodeGen/StatepointExampleGC.cpp')
-rw-r--r--llvm/lib/CodeGen/StatepointExampleGC.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StatepointExampleGC.cpp b/llvm/lib/CodeGen/StatepointExampleGC.cpp
index ed6d0e927f0..67f40c826fa 100644
--- a/llvm/lib/CodeGen/StatepointExampleGC.cpp
+++ b/llvm/lib/CodeGen/StatepointExampleGC.cpp
@@ -39,7 +39,9 @@ public:
PointerType *PT = cast<PointerType>(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());
}
};
OpenPOWER on IntegriCloud