mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Implement review feedback. Aliasees can be either GlobalValue's or
bitcasts of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -179,6 +179,27 @@ public:
|
||||
|
||||
}
|
||||
|
||||
virtual void handleGlobalAlias(
|
||||
const Type* ElemType,
|
||||
GlobalValue::LinkageTypes Linkage,
|
||||
unsigned TypeSlotNum,
|
||||
unsigned AliaseeSlot) {
|
||||
if (os) {
|
||||
*os << " GA: "
|
||||
<< " Linkage=" << Linkage
|
||||
<< " Type=";
|
||||
//WriteTypeSymbolic(*os, ElemType, M);
|
||||
*os << " Slot=" << TypeSlotNum << " AliaseeSlot=" << AliaseeSlot
|
||||
<< "\n";
|
||||
}
|
||||
|
||||
bca.numValues++;
|
||||
if (TypeSlotNum > bca.maxValueSlot)
|
||||
bca.maxValueSlot = TypeSlotNum;
|
||||
if (AliaseeSlot > bca.maxValueSlot)
|
||||
bca.maxValueSlot = AliaseeSlot;
|
||||
}
|
||||
|
||||
virtual void handleTypeList(unsigned numEntries) {
|
||||
bca.maxTypeSlot = numEntries - 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user