llvm.org GIT mirror llvm / 97bbaa3
Bitcode: Move the DEBUG_LOC record to DEBUG_LOC_OLD Prepare to simplify the `DebugLoc` record. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225498 91177308-0d34-0410-b5e6-96231b3b80d8 Duncan P. N. Exon Smith 4 years ago
4 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
313313
314314 FUNC_CODE_INST_CALL = 34, // CALL: [attr, cc, fnty, fnid, args...]
315315
316 FUNC_CODE_DEBUG_LOC = 35, // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
316 FUNC_CODE_DEBUG_LOC_OLD = 35, // DEBUG_LOC: [Line,Col,ScopeVal, IAVal]
317317 FUNC_CODE_INST_FENCE = 36, // FENCE: [ordering, synchscope]
318318 FUNC_CODE_INST_CMPXCHG = 37, // CMPXCHG: [ptrty,ptr,cmp,new, align, vol,
319319 // ordering, synchscope]
25592559 I = nullptr;
25602560 continue;
25612561
2562 case bitc::FUNC_CODE_DEBUG_LOC: { // DEBUG_LOC: [line, col, scope, ia]
2562 case bitc::FUNC_CODE_DEBUG_LOC_OLD: { // DEBUG_LOC_OLD: [line,col,scope,ia]
25632563 I = nullptr; // Get the last instruction emitted.
25642564 if (CurBB && !CurBB->empty())
25652565 I = &CurBB->back();
17171717 Vals.push_back(DL.getCol());
17181718 Vals.push_back(Scope ? VE.getMetadataID(Scope) + 1 : 0);
17191719 Vals.push_back(IA ? VE.getMetadataID(IA) + 1 : 0);
1720 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC, Vals);
1720 Stream.EmitRecord(bitc::FUNC_CODE_DEBUG_LOC_OLD, Vals);
17211721 Vals.clear();
17221722
17231723 LastDL = DL;
246246 case bitc::FUNC_CODE_INST_VSELECT: return "INST_VSELECT";
247247 case bitc::FUNC_CODE_DEBUG_LOC_AGAIN: return "DEBUG_LOC_AGAIN";
248248 case bitc::FUNC_CODE_INST_CALL: return "INST_CALL";
249 case bitc::FUNC_CODE_DEBUG_LOC: return "DEBUG_LOC";
249 case bitc::FUNC_CODE_DEBUG_LOC_OLD: return "DEBUG_LOC_OLD";
250250 }
251251 case bitc::VALUE_SYMTAB_BLOCK_ID:
252252 switch (CodeID) {