Recommited r156374 with critical fixes in BitcodeReader/Writer:
authorStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 12 May 2012 10:48:17 +0000 (10:48 +0000)
committerStepan Dyatkovskiy <stpworld@narod.ru>
Sat, 12 May 2012 10:48:17 +0000 (10:48 +0000)
commit1cce5bf8ef9ee3dc157ae5d8778f84a7a0d1d8b9
tree378e29cf4f36c588be5cd059a60e6752c3338ae3
parentb7454fd9df0b477e3daf2fce6e1d5e1b241562df
Recommited r156374 with critical fixes in BitcodeReader/Writer:
Ordinary patch for PR1255.
Added new case-ranges orientated methods for adding/removing cases in SwitchInst. After this patch cases will internally representated as ConstantArray-s instead of ConstantInt, externally cases wrapped within the ConstantRangesSet object.
Old methods of SwitchInst are also works well, but marked as deprecated. So on this stage we have no side effects except that I added support for case ranges in BitcodeReader/Writer, of course test for Bitcode is also added. Old "switch" format is also supported.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156704 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Instructions.h
include/llvm/Support/ConstantRangesSet.h
lib/Bitcode/Reader/BitcodeReader.cpp
lib/Bitcode/Writer/BitcodeWriter.cpp
lib/VMCore/Instructions.cpp
test/Bitcode/2012-05-07-SwitchInstRangesSupport.ll [new file with mode: 0644]