aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Use.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-03-31 21:28:39 +0000
committerChris Lattner <sabre@nondot.org>2009-03-31 21:28:39 +0000
commitf385167b85abf9cb63a0bec94732d7185ee74e36 (patch)
treea9eab553d45d1543b064fd1c852e053358439166 /include/llvm/Use.h
parentbdd376ccb25f251e115fff24b526b4e65e03a1d3 (diff)
downloadexternal_llvm-f385167b85abf9cb63a0bec94732d7185ee74e36.zip
external_llvm-f385167b85abf9cb63a0bec94732d7185ee74e36.tar.gz
external_llvm-f385167b85abf9cb63a0bec94732d7185ee74e36.tar.bz2
teach PointerLikeTypeTraits that all pointers to pointers may only be 4-byte aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68147 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Use.h')
-rw-r--r--include/llvm/Use.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index 53df699..32cdd1b 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -29,17 +29,6 @@ class Use;
/// Tag - generic tag type for (at least 32 bit) pointers
enum Tag { noTag, tagOne, tagTwo, tagThree };
-// Use** is only 4-byte aligned.
-template<>
-class PointerLikeTypeTraits<Use**> {
-public:
- static inline void *getAsVoidPointer(Use** P) { return P; }
- static inline Use **getFromVoidPointer(void *P) {
- return static_cast<Use**>(P);
- }
- enum { NumLowBitsAvailable = 2 };
-};
-
//===----------------------------------------------------------------------===//
// Use Class
//===----------------------------------------------------------------------===//