summaryrefslogtreecommitdiff
path: root/lib/VMCore/Attributes.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-09-25 20:38:59 +0000
committerBill Wendling <isanbard@gmail.com>2012-09-25 20:38:59 +0000
commit853a8c5f2ee9fa16f7c4c1fca658db40d4c73743 (patch)
tree4c948fad8ce7cdf186af1da071af29ff0b3586ea /lib/VMCore/Attributes.cpp
parent1a37d7e807ad6cc71fe3cffdf6674644c46a60eb (diff)
downloadllvm-853a8c5f2ee9fa16f7c4c1fca658db40d4c73743.tar.gz
llvm-853a8c5f2ee9fa16f7c4c1fca658db40d4c73743.tar.bz2
llvm-853a8c5f2ee9fa16f7c4c1fca658db40d4c73743.tar.xz
Move Attribute::typeIncompatible inside of the Attributes class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164629 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Attributes.cpp')
-rw-r--r--lib/VMCore/Attributes.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/VMCore/Attributes.cpp b/lib/VMCore/Attributes.cpp
index af8163fd40..453190bbaf 100644
--- a/lib/VMCore/Attributes.cpp
+++ b/lib/VMCore/Attributes.cpp
@@ -94,16 +94,17 @@ std::string Attributes::getAsString() const {
return Result;
}
-Attributes Attribute::typeIncompatible(Type *Ty) {
- Attributes Incompatible = None;
+Attributes Attributes::typeIncompatible(Type *Ty) {
+ Attributes Incompatible = Attribute::None;
if (!Ty->isIntegerTy())
// Attributes that only apply to integers.
- Incompatible |= SExt | ZExt;
+ Incompatible |= Attribute::SExt | Attribute::ZExt;
if (!Ty->isPointerTy())
// Attributes that only apply to pointers.
- Incompatible |= ByVal | Nest | NoAlias | StructRet | NoCapture;
+ Incompatible |= Attribute::ByVal | Attribute::Nest | Attribute::NoAlias |
+ Attribute::StructRet | Attribute::NoCapture;
return Incompatible;
}