diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-04-28 22:52:50 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-04-28 22:52:50 +0000 |
commit | b2133cb88d0a66abdba354865ed39d28c6b35a49 (patch) | |
tree | e1e61990d09d92483dab8df18f0487ca798b6095 /llvm/lib | |
parent | e0d954d51dbc4aec803390a4a31052e418624bf4 (diff) | |
download | bcm5719-llvm-b2133cb88d0a66abdba354865ed39d28c6b35a49.tar.gz bcm5719-llvm-b2133cb88d0a66abdba354865ed39d28c6b35a49.zip |
AddressPool::HasBeenUsed: Add comment explaining the use-case for this flag.
Based on code review by Eric Christopher on r207323
llvm-svn: 207460
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AddressPool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AddressPool.h b/llvm/lib/CodeGen/AsmPrinter/AddressPool.h index 3058fed33fd..42757d732fd 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AddressPool.h +++ b/llvm/lib/CodeGen/AsmPrinter/AddressPool.h @@ -26,6 +26,11 @@ class AddressPool { AddressPoolEntry(unsigned Number, bool TLS) : Number(Number), TLS(TLS) {} }; DenseMap<const MCSymbol *, AddressPoolEntry> 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: |