mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-03 12:18:00 +00:00
add two missing function impls
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -256,7 +256,7 @@ public:
|
|||||||
|
|
||||||
/// isLiteral - Return true if this type is uniqued by structural
|
/// isLiteral - Return true if this type is uniqued by structural
|
||||||
/// equivalence, false if it is a struct definition.
|
/// equivalence, false if it is a struct definition.
|
||||||
bool isLiteral() const {return (getSubclassData() & SCDB_IsLiteral) != 0;}
|
bool isLiteral() const { return (getSubclassData() & SCDB_IsLiteral) != 0; }
|
||||||
|
|
||||||
/// isOpaque - Return true if this is a type with an identity that has no body
|
/// isOpaque - Return true if this is a type with an identity that has no body
|
||||||
/// specified yet. These prints as 'opaque' in .ll files.
|
/// specified yet. These prints as 'opaque' in .ll files.
|
||||||
|
@@ -461,6 +461,13 @@ void StructType::setName(StringRef Name) {
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// StructType Helper functions.
|
// StructType Helper functions.
|
||||||
|
|
||||||
|
StructType *StructType::create(LLVMContext &Context, StringRef Name) {
|
||||||
|
StructType *ST = new (Context.pImpl->TypeAllocator) StructType(Context);
|
||||||
|
if (!Name.empty())
|
||||||
|
ST->setName(Name);
|
||||||
|
return ST;
|
||||||
|
}
|
||||||
|
|
||||||
StructType *StructType::get(LLVMContext &Context, bool isPacked) {
|
StructType *StructType::get(LLVMContext &Context, bool isPacked) {
|
||||||
return get(Context, llvm::ArrayRef<Type*>(), isPacked);
|
return get(Context, llvm::ArrayRef<Type*>(), isPacked);
|
||||||
}
|
}
|
||||||
@@ -489,6 +496,10 @@ StructType *StructType::create(LLVMContext &Context, ArrayRef<Type*> Elements) {
|
|||||||
return create(Context, Elements, StringRef());
|
return create(Context, Elements, StringRef());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StructType *StructType::create(LLVMContext &Context) {
|
||||||
|
return create(Context, ArrayRef<Type*>(), StringRef());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
|
StructType *StructType::create(ArrayRef<Type*> Elements, StringRef Name,
|
||||||
bool isPacked) {
|
bool isPacked) {
|
||||||
|
Reference in New Issue
Block a user