diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-08 16:16:20 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-05-08 16:16:20 +0000 |
| commit | f7596c91afde61dee400c5f5c663b41f44f46efe (patch) | |
| tree | 1ec9d88ee868faea7a4e6d29fb7f68c4df23e001 /llvm | |
| parent | 276ae140237d11f5fd902e391d3928753a5849c8 (diff) | |
| download | bcm5719-llvm-f7596c91afde61dee400c5f5c663b41f44f46efe.tar.gz bcm5719-llvm-f7596c91afde61dee400c5f5c663b41f44f46efe.zip | |
remove TYPE_CODE_FUNCTION_OLD type code. it is no longer in use and it was marked for removal in 3.0
llvm-svn: 156383
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Bitcode/LLVMBitCodes.h | 3 | ||||
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 20 |
2 files changed, 0 insertions, 23 deletions
diff --git a/llvm/include/llvm/Bitcode/LLVMBitCodes.h b/llvm/include/llvm/Bitcode/LLVMBitCodes.h index a8c34cb8299..56090ead8b9 100644 --- a/llvm/include/llvm/Bitcode/LLVMBitCodes.h +++ b/llvm/include/llvm/Bitcode/LLVMBitCodes.h @@ -90,9 +90,6 @@ namespace bitc { TYPE_CODE_OPAQUE = 6, // OPAQUE TYPE_CODE_INTEGER = 7, // INTEGER: [width] TYPE_CODE_POINTER = 8, // POINTER: [pointee type] - - TYPE_CODE_FUNCTION_OLD = 9, // FUNCTION: [vararg, attrid, retty, - // paramty x N] TYPE_CODE_HALF = 10, // HALF diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index e3990403bd7..99542ec8bec 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -620,26 +620,6 @@ bool BitcodeReader::ParseTypeTableBody() { ResultTy = PointerType::get(ResultTy, AddressSpace); break; } - case bitc::TYPE_CODE_FUNCTION_OLD: { - // FIXME: attrid is dead, remove it in LLVM 3.0 - // FUNCTION: [vararg, attrid, retty, paramty x N] - if (Record.size() < 3) - return Error("Invalid FUNCTION type record"); - SmallVector<Type*, 8> ArgTys; - for (unsigned i = 3, e = Record.size(); i != e; ++i) { - if (Type *T = getTypeByID(Record[i])) - ArgTys.push_back(T); - else - break; - } - - ResultTy = getTypeByID(Record[2]); - if (ResultTy == 0 || ArgTys.size() < Record.size()-3) - return Error("invalid type in function type"); - - ResultTy = FunctionType::get(ResultTy, ArgTys, Record[0]); - break; - } case bitc::TYPE_CODE_FUNCTION: { // FUNCTION: [vararg, retty, paramty x N] if (Record.size() < 2) |

