mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user