Skip to content
Snippets Groups Projects
Commit 11a7f35c authored by Chris Lattner's avatar Chris Lattner
Browse files

add getNumLowBitsAvailable for OpaquePtr and QualType.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67975 91177308-0d34-0410-b5e6-96231b3b80d8
parent daae9405
No related branches found
No related tags found
No related merge requests found
......@@ -233,6 +233,8 @@ public:
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
......
......@@ -57,6 +57,7 @@ namespace llvm {
static inline clang::OpaquePtr<UID> getFromVoidPointer(void *P) {
return clang::OpaquePtr<UID>::make(P);
}
static inline unsigned getNumLowBitsAvailable() { return 3; }
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment