diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h index dfd4bd79764..e2633ee9ece 100644 --- a/include/llvm/Analysis/DSSupport.h +++ b/include/llvm/Analysis/DSSupport.h @@ -26,6 +26,11 @@ namespace DS { // FIXME: After the paper, this should get cleaned up enum { PointerShift = 3, // 64bit ptrs = 3, 32 bit ptrs = 2 PointerSize = 1 << PointerShift }; + + // isPointerType - Return true if this first class type is big enough to hold + // a pointer. + // + bool isPointerType(const Type *Ty); }; //===----------------------------------------------------------------------===// diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index dfd4bd79764..e2633ee9ece 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -26,6 +26,11 @@ namespace DS { // FIXME: After the paper, this should get cleaned up enum { PointerShift = 3, // 64bit ptrs = 3, 32 bit ptrs = 2 PointerSize = 1 << PointerShift }; + + // isPointerType - Return true if this first class type is big enough to hold + // a pointer. + // + bool isPointerType(const Type *Ty); }; //===----------------------------------------------------------------------===//