diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-17 07:45:14 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-17 07:45:14 +0000 |
commit | c3e436427b9542ba028c5728c0163f236262de05 (patch) | |
tree | 6c32db506d6d25a7d8429a71ee967df2157ff57d /llvm/lib/Bytecode/Reader/Reader.h | |
parent | 0b85d03b57df85bdf1e75db1f60cab465fe95903 (diff) | |
download | bcm5719-llvm-c3e436427b9542ba028c5728c0163f236262de05.tar.gz bcm5719-llvm-c3e436427b9542ba028c5728c0163f236262de05.zip |
Bytecode File Format Changes:
- File format version number bumped to 4
- Writer will now align nothing
- Reader now only expects alignment for version 3 or earlier
llvm-svn: 15875
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Reader.h')
-rw-r--r-- | llvm/lib/Bytecode/Reader/Reader.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/Reader.h b/llvm/lib/Bytecode/Reader/Reader.h index ad8b2655b72..5e7a439d7d1 100644 --- a/llvm/lib/Bytecode/Reader/Reader.h +++ b/llvm/lib/Bytecode/Reader/Reader.h @@ -293,8 +293,11 @@ private: /// features, for use in future versions of LLVM. bool hasNoDependentLibraries; - /// LLVM 1.2 and earlier encoded the file version as part of the module block - /// but this information may be needed to + /// LLVM 1.3 and earlier caused blocks and other fields to start on 32-bit + /// aligned boundaries. This can lead to as much as 30% bytecode size overhead + /// in various corner cases (lots of long instructions). In LLVM 1.4, + /// alignment of bytecode fields was done away with completely. + bool hasAlignment; /// CompactionTypes - If a compaction table is active in the current function, /// this is the mapping that it contains. We keep track of what resolved type |