mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
initial support for calling convention generation, still unfinished.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34682 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -337,6 +337,13 @@ Init *ListInit::convertInitListSlice(const std::vector<unsigned> &Elements) {
|
||||
return new ListInit(Vals);
|
||||
}
|
||||
|
||||
Record *ListInit::getElementAsRecord(unsigned i) const {
|
||||
assert(i < Values.size() && "List element index out of range!");
|
||||
DefInit *DI = dynamic_cast<DefInit*>(Values[i]);
|
||||
if (DI == 0) throw "Expected record in list!";
|
||||
return DI->getDef();
|
||||
}
|
||||
|
||||
Init *ListInit::resolveReferences(Record &R, const RecordVal *RV) {
|
||||
std::vector<Init*> Resolved;
|
||||
Resolved.reserve(getSize());
|
||||
|
||||
Reference in New Issue
Block a user