[IR] Add token types
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.cpp
index 658c08f3646c61e0b613a97e39b35cb5c1f0488c..06935f7ab1b9e72c512e459f013bc3f6a3f7930d 100644 (file)
@@ -1360,6 +1360,9 @@ std::error_code BitcodeReader::parseTypeTableBody() {
     case bitc::TYPE_CODE_X86_MMX:   // X86_MMX
       ResultTy = Type::getX86_MMXTy(Context);
       break;
+    case bitc::TYPE_CODE_TOKEN:     // TOKEN
+      ResultTy = Type::getTokenTy(Context);
+      break;
     case bitc::TYPE_CODE_INTEGER: { // INTEGER: [width]
       if (Record.size() < 1)
         return error("Invalid record");