mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Packed types, brought to you by Brad Jones
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15938 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -387,6 +387,27 @@ public:
|
||||
bca.numValues++;
|
||||
}
|
||||
|
||||
virtual void handleConstantPacked(
|
||||
const PackedType* PT,
|
||||
std::vector<Constant*>& Elements,
|
||||
unsigned TypeSlot,
|
||||
Constant* PackedVal)
|
||||
{
|
||||
dump << " PACKD: " << PT->getDescription()
|
||||
<< " TypeSlot=" << TypeSlot << "\n";
|
||||
for ( unsigned i = 0; i < Elements.size(); ++i ) {
|
||||
dump << " #" << i;
|
||||
Elements[i]->print(dump);
|
||||
dump << "\n";
|
||||
}
|
||||
dump << " Value=";
|
||||
PackedVal->print(dump);
|
||||
dump << "\n";
|
||||
|
||||
bca.numConstants++;
|
||||
bca.numValues++;
|
||||
}
|
||||
|
||||
virtual void handleConstantPointer( const PointerType* PT,
|
||||
unsigned Slot, GlobalValue* GV ) {
|
||||
dump << " PNTR: " << PT->getDescription()
|
||||
|
Reference in New Issue
Block a user