mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move ConstantStruct back to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77266 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1737,7 +1737,7 @@ bool LLParser::ParseValID(ValID &ID) {
|
||||
ParseToken(lltok::rbrace, "expected end of struct constant"))
|
||||
return true;
|
||||
|
||||
ID.ConstantVal = Context.getConstantStruct(Elts.data(), Elts.size(), false);
|
||||
ID.ConstantVal = ConstantStruct::get(Elts.data(), Elts.size(), false);
|
||||
ID.Kind = ValID::t_Constant;
|
||||
return false;
|
||||
}
|
||||
@@ -1757,7 +1757,7 @@ bool LLParser::ParseValID(ValID &ID) {
|
||||
|
||||
if (isPackedStruct) {
|
||||
ID.ConstantVal =
|
||||
Context.getConstantStruct(Elts.data(), Elts.size(), true);
|
||||
ConstantStruct::get(Elts.data(), Elts.size(), true);
|
||||
ID.Kind = ValID::t_Constant;
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user