summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-01-17 15:18:06 +0000
committerJay Foad <jay.foad@gmail.com>2011-01-17 15:18:06 +0000
commitfe87364215203ff07aaffe3b570ef0113c98a87f (patch)
treee7464714fd45f0a30423de06baee1baa8ef5e75a /llvm/lib
parent06c6d5cdb6ee8cba15612508e90708f72596e5ec (diff)
downloadbcm5719-llvm-fe87364215203ff07aaffe3b570ef0113c98a87f.tar.gz
bcm5719-llvm-fe87364215203ff07aaffe3b570ef0113c98a87f.zip
Remove useless Tag enumeration.
llvm-svn: 123623
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Use.cpp4
-rw-r--r--llvm/lib/VMCore/User.cpp5
2 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Use.cpp b/llvm/lib/VMCore/Use.cpp
index 4e959a516cd..2258b8d985a 100644
--- a/llvm/lib/VMCore/Use.cpp
+++ b/llvm/lib/VMCore/Use.cpp
@@ -135,8 +135,8 @@ void Use::zap(Use *Start, const Use *Stop, bool del) {
User *Use::getUser() const {
const Use *End = getImpliedUser();
- const PointerIntPair<User*, 1, Tag>& ref(
- static_cast<const AugmentedUse*>(End - 1)->ref);
+ const PointerIntPair<User*, 1, unsigned>&
+ ref(static_cast<const AugmentedUse*>(End - 1)->ref);
User *She = ref.getPointer();
return ref.getInt()
? She
diff --git a/llvm/lib/VMCore/User.cpp b/llvm/lib/VMCore/User.cpp
index 153eb34e090..ba2b2081db5 100644
--- a/llvm/lib/VMCore/User.cpp
+++ b/llvm/lib/VMCore/User.cpp
@@ -44,9 +44,10 @@ Use *User::allocHungoffUses(unsigned N) const {
+ sizeof(AugmentedUse)
- sizeof(Use)));
Use *End = Begin + N;
- PointerIntPair<User*, 1, Tag>& ref(static_cast<AugmentedUse&>(End[-1]).ref);
+ PointerIntPair<User*, 1, unsigned>&
+ ref(static_cast<AugmentedUse&>(End[-1]).ref);
ref.setPointer(const_cast<User*>(this));
- ref.setInt(tagOne);
+ ref.setInt(1);
return Use::initTags(Begin, End);
}
OpenPOWER on IntegriCloud