llvm.org GIT mirror llvm / 332376b
Unbreak VC++. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36831 91177308-0d34-0410-b5e6-96231b3b80d8 Jeff Cohen 12 years ago
6 changed file(s) with 15 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
135135 if (C == '.') return 62;
136136 if (C == '_') return 63;
137137 assert(0 && "Not a value Char6 character!");
138 return 0;
138139 }
139140
140141 static char DecodeChar6(unsigned V) {
145146 if (V == 62) return '.';
146147 if (V == 63) return '_';
147148 assert(0 && "Not a value Char6 character!");
149 return ' ';
148150 }
149151
150152 };
109109
110110 /// JumpToBit - Reset the stream to the specified bit number.
111111 void JumpToBit(uint64_t BitNo) {
112 unsigned ByteNo = (BitNo/8) & ~3;
113 unsigned WordBitNo = BitNo & 31;
112 unsigned ByteNo = unsigned(BitNo/8) & ~3;
113 unsigned WordBitNo = unsigned(BitNo) & 31;
114114 assert(ByteNo < (unsigned)(LastChar-FirstChar) && "Invalid location");
115115
116116 // Move the cursor to the right word.
326326 switch (Op.getEncoding()) {
327327 default: assert(0 && "Unknown encoding!");
328328 case BitCodeAbbrevOp::Fixed:
329 Vals.push_back(Read(Op.getEncodingData()));
329 Vals.push_back(Read((unsigned)Op.getEncodingData()));
330330 break;
331331 case BitCodeAbbrevOp::VBR:
332 Vals.push_back(ReadVBR64(Op.getEncodingData()));
332 Vals.push_back(ReadVBR64((unsigned)Op.getEncodingData()));
333333 break;
334334 case BitCodeAbbrevOp::Char6:
335335 Vals.push_back(BitCodeAbbrevOp::DecodeChar6(Read(6)));
369369 }
370370 }
371371
372 unsigned Code = Vals[0];
372 unsigned Code = (unsigned)Vals[0];
373373 Vals.erase(Vals.begin());
374374 return Code;
375375 }
450450 default: break; // Default behavior, ignore unknown content.
451451 case bitc::BLOCKINFO_CODE_SETBID:
452452 if (Record.size() < 1) return true;
453 CurBlockInfo = &getOrCreateBlockInfo(Record[0]);
453 CurBlockInfo = &getOrCreateBlockInfo((unsigned)Record[0]);
454454 break;
455455 }
456456 }
254254 switch (Op.getEncoding()) {
255255 default: assert(0 && "Unknown encoding!");
256256 case BitCodeAbbrevOp::Fixed:
257 Emit(V, Op.getEncodingData());
257 Emit((unsigned)V, (unsigned)Op.getEncodingData());
258258 break;
259259 case BitCodeAbbrevOp::VBR:
260 EmitVBR64(V, Op.getEncodingData());
260 EmitVBR64(V, (unsigned)Op.getEncodingData());
261261 break;
262262 case BitCodeAbbrevOp::Char6:
263263 Emit(BitCodeAbbrevOp::EncodeChar6((char)V), 6);
807807 case Instruction::Call: {
808808 Code = bitc::FUNC_CODE_INST_CALL;
809809 Vals.push_back((cast(I).getCallingConv() << 1) |
810 cast(I).isTailCall());
810 unsigned(cast(I).isTailCall()));
811811 PushValueAndType(I.getOperand(0), InstID, Vals, VE); // Callee
812812
813813 // Emit value #'s for the fixed parameters.
107107 Name="Source Files"
108108 Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
109109 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}">
110
111 RelativePath="..\..\lib\Bitcode\Writer\BitcodeWriterPass.cpp">
112
110113
111114 Name="Reader"
112115 Filter="">
174174 {28AA9146-3482-4F41-9CC6-407B1D258508} = {28AA9146-3482-4F41-9CC6-407B1D258508}
175175 {19514E48-456C-4B9D-8637-F2285476461E} = {19514E48-456C-4B9D-8637-F2285476461E}
176176 {F1EFF064-8869-4DFF-8E1A-CD8F4A5F8D61} = {F1EFF064-8869-4DFF-8E1A-CD8F4A5F8D61}
177 {F1EFF064-8869-4DFF-8E1A-CD8F4A5F8D62} = {F1EFF064-8869-4DFF-8E1A-CD8F4A5F8D62}
177178 {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4} = {059FBAB8-C76D-48A0-AA75-3C57BD3EAFE4}
178179 {C59374C1-9FC0-4147-B836-327DFDC52D99} = {C59374C1-9FC0-4147-B836-327DFDC52D99}
179180 {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB} = {45CD78D7-C5D9-47FE-AD12-F3251EEDAFFB}