mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cbf3daee0b
commit
f7876426f0
@ -220,8 +220,6 @@ Type *Type::getStructElementType(unsigned N) const {
|
|||||||
return cast<StructType>(this)->getElementType(N);
|
return cast<StructType>(this)->getElementType(N);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Type *Type::getSequentialElementType() const {
|
Type *Type::getSequentialElementType() const {
|
||||||
return cast<SequentialType>(this)->getElementType();
|
return cast<SequentialType>(this)->getElementType();
|
||||||
}
|
}
|
||||||
@ -239,8 +237,6 @@ unsigned Type::getPointerAddressSpace() const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Primitive 'Type' data
|
// Primitive 'Type' data
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
@ -400,12 +396,10 @@ FunctionType *FunctionType::get(Type *ReturnType,
|
|||||||
return FT;
|
return FT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
FunctionType *FunctionType::get(Type *Result, bool isVarArg) {
|
FunctionType *FunctionType::get(Type *Result, bool isVarArg) {
|
||||||
return get(Result, ArrayRef<Type *>(), isVarArg);
|
return get(Result, ArrayRef<Type *>(), isVarArg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// isValidReturnType - Return true if the specified type is valid as a return
|
/// isValidReturnType - Return true if the specified type is valid as a return
|
||||||
/// type.
|
/// type.
|
||||||
bool FunctionType::isValidReturnType(Type *RetTy) {
|
bool FunctionType::isValidReturnType(Type *RetTy) {
|
||||||
@ -553,7 +547,6 @@ StructType *StructType::create(LLVMContext &Context) {
|
|||||||
return create(Context, StringRef());
|
return create(Context, StringRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
|
StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
|
||||||
bool isPacked) {
|
bool isPacked) {
|
||||||
assert(!Elements.empty() &&
|
assert(!Elements.empty() &&
|
||||||
@ -637,7 +630,6 @@ bool StructType::isLayoutIdentical(StructType *Other) const {
|
|||||||
return std::equal(element_begin(), element_end(), Other->element_begin());
|
return std::equal(element_begin(), element_end(), Other->element_begin());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// getTypeByName - Return the type with the specified name, or null if there
|
/// getTypeByName - Return the type with the specified name, or null if there
|
||||||
/// is none by that name.
|
/// is none by that name.
|
||||||
StructType *Module::getTypeByName(StringRef Name) const {
|
StructType *Module::getTypeByName(StringRef Name) const {
|
||||||
@ -700,7 +692,6 @@ ArrayType::ArrayType(Type *ElType, uint64_t NumEl)
|
|||||||
NumElements = NumEl;
|
NumElements = NumEl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) {
|
ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) {
|
||||||
Type *ElementType = const_cast<Type*>(elementType);
|
Type *ElementType = const_cast<Type*>(elementType);
|
||||||
assert(isValidElementType(ElementType) && "Invalid type for array element!");
|
assert(isValidElementType(ElementType) && "Invalid type for array element!");
|
||||||
|
Loading…
Reference in New Issue
Block a user