llvm-6502/lib
Chris Lattner b24f5b7c08 Fix the underlying problem that was causing read(0) to be called: sometimes the
bitcode writer would generate abbrev records saying that the abbrev should be
filled with fixed zero-bit bitfields (this happens in the .bc writer when 
the number of types used in a module is exactly one, since log2(1) == 0).

In this case, just handle it as a literal zero.  We can't "just fix" the writer
without breaking compatibility with existing bc files, so have the abbrev reader
do the substitution.

Strengthen the assert in read to reject reads of zero bits so we catch such 
crimes in the future, and remove the special case designed to handle this.




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174801 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-09 07:07:29 +00:00
..
Analysis Revert "Add LLVMContext::emitWarning methods and use them. <rdar://problem/12867368>" 2013-02-08 21:48:29 +00:00
Archive Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
AsmParser Parse the attribute group reference on a function. 2013-02-08 06:32:06 +00:00
Bitcode Fix the underlying problem that was causing read(0) to be called: sometimes the 2013-02-09 07:07:29 +00:00
CodeGen Dwarf: do not use line_table_start in at_stmt_list since we do not always emit 2013-02-09 00:41:44 +00:00
DebugInfo The patch to fix some issues in r174543 fixed the lines failing the test, but missed a couple 2013-02-08 16:35:10 +00:00
ExecutionEngine [patch] bug 15055 Add Unistd.h to OProfileWrapper.cpp 2013-02-07 20:43:33 +00:00
IR Enable *BasicBlockPass::createPrinterPass() 2013-02-08 23:37:41 +00:00
Linker [Linker] Kill Linker::LoadObject which is dead, and drop the BitReader dependency again. 2013-01-18 19:37:11 +00:00
MC Formatting. 2013-02-07 21:19:56 +00:00
Object [Object][Archive] Improve performance. 2013-02-03 10:48:50 +00:00
Option Resort the #include lines in include/... and lib/... with the 2013-01-02 10:22:59 +00:00
Support More MSan/ASan annotations. 2013-02-04 07:03:24 +00:00
TableGen tblgen: Diagnose duplicate includes. 2013-02-07 04:30:39 +00:00
Target R600: Dump the function name when TargetLowering::LowerCall() fails 2013-02-08 22:24:40 +00:00
Transforms LSR IVChain improvement. 2013-02-09 01:11:01 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile