Skip to content

Instantly share code, notes, and snippets.

@brycelelbach
Created September 20, 2010 12:19
Show Gist options
  • Save brycelelbach/587817 to your computer and use it in GitHub Desktop.
Save brycelelbach/587817 to your computer and use it in GitHub Desktop.
namespace llvm {
/// \brief The clang::TemplateName class is effectively a pointer.
template<>
class PointerLikeTypeTraits<clang::TemplateName> {
public:
static inline void *getAsVoidPointer(clang::TemplateName TN) {
return TN.getAsVoidPointer();
}
static inline clang::TemplateName getFromVoidPointer(void *Ptr) {
return clang::TemplateName::getFromVoidPointer(Ptr);
}
// No bits are available!
enum { NumLowBitsAvailable = 0 };
};
} // end namespace llvm.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment