[llvm] r207460 - AddressPool::HasBeenUsed: Add comment explaining the use-case for this flag.

David Blaikie dblaikie at gmail.com
Mon Apr 28 15:52:50 PDT 2014


Author: dblaikie
Date: Mon Apr 28 17:52:50 2014
New Revision: 207460

URL: http://llvm.org/viewvc/llvm-project?rev=207460&view=rev
Log:
AddressPool::HasBeenUsed: Add comment explaining the use-case for this flag.

Based on code review by Eric Christopher on r207323

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/AddressPool.h

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AddressPool.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AddressPool.h?rev=207460&r1=207459&r2=207460&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AddressPool.h (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AddressPool.h Mon Apr 28 17:52:50 2014
@@ -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:





More information about the llvm-commits mailing list