Created
September 20, 2010 12:19
-
-
Save brycelelbach/587817 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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