mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Make structs and arrays first-class types, and add assembly
and bitcode support for the extractvalue and insertvalue instructions and constant expressions. Note that this does not yet include CodeGen support. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -216,8 +216,8 @@ public:
|
||||
/// is a valid type for a Value.
|
||||
///
|
||||
inline bool isFirstClassType() const {
|
||||
// Coming soon: first-class struct and array types...
|
||||
return isSingleValueType();
|
||||
return isSingleValueType() ||
|
||||
ID == StructTyID || ID == ArrayTyID;
|
||||
}
|
||||
|
||||
/// isSingleValueType - Return true if the type is a valid type for a
|
||||
|
Reference in New Issue
Block a user