summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Analyzer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-10 14:04:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-10 14:04:08 +0000
commit6e4c2778585a79feeab8ab2ac85623904d3235b0 (patch)
treed21f238d3919731c71e0d06183b32205fe09c3ec /llvm/lib/Bytecode/Reader/Analyzer.cpp
parent16731591255f93c52218fbbc4455bc0a3587d32e (diff)
downloadbcm5719-llvm-6e4c2778585a79feeab8ab2ac85623904d3235b0.tar.gz
bcm5719-llvm-6e4c2778585a79feeab8ab2ac85623904d3235b0.zip
For PR1194:
The bcreader counts on "primitive" types being inserted before they are referenced in other types. With recent changes to the bcwriter, this fact became exposed since IntegerType is no longer "primitive". We can no longer count on all IntegerTypes being inserted early. This patch modifies getOrCreateTypeSlot to insert any sub-type that can't possibly recurse before we create the slot for the type. This has the benefit of reducing the number of OpaqueType objects the reader needs to deal with. llvm-svn: 34147
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Analyzer.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud