[cfe-commits] r67975 - in /cfe/trunk/include/clang: AST/Type.h Parse/Ownership.h

Chris Lattner sabre at nondot.org
Sat Mar 28 17:41:20 PDT 2009


Author: lattner
Date: Sat Mar 28 19:41:20 2009
New Revision: 67975

URL: http://llvm.org/viewvc/llvm-project?rev=67975&view=rev
Log:
add getNumLowBitsAvailable for OpaquePtr and QualType.

Modified:
    cfe/trunk/include/clang/AST/Type.h
    cfe/trunk/include/clang/Parse/Ownership.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=67975&r1=67974&r2=67975&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Sat Mar 28 19:41:20 2009
@@ -233,6 +233,8 @@
   static inline clang::QualType getFromVoidPointer(void *P) {
     return clang::QualType::getFromOpaquePtr(P);
   }
+  // CVR qualifiers go in low bits.
+  static inline unsigned getNumLowBitsAvailable() { return 0; }
 };
 } // end namespace llvm
 

Modified: cfe/trunk/include/clang/Parse/Ownership.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Ownership.h?rev=67975&r1=67974&r2=67975&view=diff

==============================================================================
--- cfe/trunk/include/clang/Parse/Ownership.h (original)
+++ cfe/trunk/include/clang/Parse/Ownership.h Sat Mar 28 19:41:20 2009
@@ -57,6 +57,7 @@
     static inline clang::OpaquePtr<UID> getFromVoidPointer(void *P) {
       return clang::OpaquePtr<UID>::make(P);
     }
+    static inline unsigned getNumLowBitsAvailable() { return 3; }
   };
 }
 





More information about the cfe-commits mailing list