diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-20 06:00:58 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-20 06:00:58 +0000 |
commit | 0220904e7ad2936d0bd4fd659c9ee7508f38dacc (patch) | |
tree | 6549bfc9d4de9d031c5395fc71fa86e4198ebd45 /llvm/lib/Bytecode/Reader/Analyzer.cpp | |
parent | 2b4b4a577ad5ce9a8fe862a43e2009455d99304a (diff) | |
download | bcm5719-llvm-0220904e7ad2936d0bd4fd659c9ee7508f38dacc.tar.gz bcm5719-llvm-0220904e7ad2936d0bd4fd659c9ee7508f38dacc.zip |
Packed types, brought to you by Brad Jones
llvm-svn: 15938
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Analyzer.cpp')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Analyzer.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/lib/Bytecode/Reader/Analyzer.cpp b/llvm/lib/Bytecode/Reader/Analyzer.cpp index f6739ae3c6f..bc1f0c74cdd 100644 --- a/llvm/lib/Bytecode/Reader/Analyzer.cpp +++ b/llvm/lib/Bytecode/Reader/Analyzer.cpp @@ -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() |