summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Attributes.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-05 07:55:47 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-05 07:55:47 +0000
commitc91006f74177dddc7f50b019b9f19a3b4370e2b0 (patch)
treeded03ff3470b94b869bc1c400aae03739146ba9c /llvm/lib/IR/Attributes.cpp
parent800a916f992a76a6824df962d4d7e40705597556 (diff)
downloadbcm5719-llvm-c91006f74177dddc7f50b019b9f19a3b4370e2b0.tar.gz
bcm5719-llvm-c91006f74177dddc7f50b019b9f19a3b4370e2b0.zip
IR/Attributes: Provide EmptyKey and TombstoneKey in part of enum, as workaround for gcc-4.4 take #2.
I will investigate, later, what was wrong. I am too tired for now. llvm-svn: 171611
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r--llvm/lib/IR/Attributes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp
index 84f90ade8b2..039e036e894 100644
--- a/llvm/lib/IR/Attributes.cpp
+++ b/llvm/lib/IR/Attributes.cpp
@@ -426,6 +426,8 @@ uint64_t AttributeImpl::getBitMask() const {
uint64_t AttributeImpl::getAttrMask(Attribute::AttrKind Val) {
switch (Val) {
case Attribute::EndAttrKinds: break;
+ case Attribute::EmptyKey: break;
+ case Attribute::TombstoneKey: break;
case Attribute::None: return 0;
case Attribute::ZExt: return 1 << 0;
case Attribute::SExt: return 1 << 1;
OpenPOWER on IntegriCloud