mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-18 19:38:51 +00:00
Revert r135042. As Chris pointed out, it had no effect, and was based on
a complete misunderstanding of the code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135070 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9bc402c8d4
commit
d1863560cb
@ -343,8 +343,6 @@ FunctionType *FunctionType::get(const Type *ReturnType,
|
||||
FT = (FunctionType*) operator new(sizeof(FunctionType) +
|
||||
sizeof(Type*)*(Params.size()+1));
|
||||
new (FT) FunctionType(ReturnType, Params, isVarArg);
|
||||
|
||||
ReturnType->getContext().pImpl->FunctionTypes[Key] = FT;
|
||||
}
|
||||
|
||||
return FT;
|
||||
@ -395,9 +393,6 @@ StructType *StructType::get(LLVMContext &Context, ArrayRef<Type*> ETypes,
|
||||
ST = new StructType(Context);
|
||||
ST->setSubclassData(SCDB_IsAnonymous); // Anonymous struct.
|
||||
ST->setBody(ETypes, isPacked);
|
||||
|
||||
Context.pImpl->AnonStructTypes[Key] = ST;
|
||||
|
||||
return ST;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user