aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Use.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Use.h')
-rw-r--r--include/llvm/Use.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index 1b8f48921e..96e07f8894 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -25,9 +25,7 @@
#ifndef LLVM_USE_H
#define LLVM_USE_H
-#include "llvm/Support/Casting.h"
#include "llvm/ADT/PointerIntPair.h"
-#include <cstddef>
#include <iterator>
namespace llvm {
@@ -36,9 +34,6 @@ class Value;
class User;
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**> {
@@ -71,10 +66,10 @@ private:
if (Val) removeFromList();
}
- enum PrevPtrTag { zeroDigitTag = noTag
- , oneDigitTag = tagOne
- , stopTag = tagTwo
- , fullStopTag = tagThree };
+ enum PrevPtrTag { zeroDigitTag
+ , oneDigitTag
+ , stopTag
+ , fullStopTag };
/// Constructor
Use(PrevPtrTag tag) : Val(0) {
@@ -215,7 +210,7 @@ public:
//===----------------------------------------------------------------------===//
struct AugmentedUse : public Use {
- PointerIntPair<User*, 1, Tag> ref;
+ PointerIntPair<User*, 1, unsigned> ref;
AugmentedUse(); // not implemented
};