From: David Blaikie Date: Mon, 28 Apr 2014 22:52:50 +0000 (+0000) Subject: AddressPool::HasBeenUsed: Add comment explaining the use-case for this flag. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4fc8298f17f0a7e197b19bfab2bc6b9b50cbaaaa;p=oota-llvm.git AddressPool::HasBeenUsed: Add comment explaining the use-case for this flag. Based on code review by Eric Christopher on r207323 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207460 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AddressPool.h b/lib/CodeGen/AsmPrinter/AddressPool.h index 3058fed33fd..42757d732fd 100644 --- a/lib/CodeGen/AsmPrinter/AddressPool.h +++ b/lib/CodeGen/AsmPrinter/AddressPool.h @@ -26,6 +26,11 @@ class AddressPool { AddressPoolEntry(unsigned Number, bool TLS) : Number(Number), TLS(TLS) {} }; DenseMap Pool; + + /// Record whether the AddressPool has been queried for an address index since + /// the last "resetUsedFlag" call. Used to implement type unit fallback - a + /// type that references addresses cannot be placed in a type unit when using + /// fission. bool HasBeenUsed; public: