File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1185,7 +1185,7 @@ class MCPlusBuilder {
1185
1185
1186
1186
// / Set the label of \p Inst. This label will be emitted right before \p Inst
1187
1187
// / is emitted to MCStreamer.
1188
- bool setLabel (MCInst &Inst, MCSymbol *Label);
1188
+ bool setLabel (MCInst &Inst, MCSymbol *Label, AllocatorIdTy AllocatorId = 0 );
1189
1189
1190
1190
// / Return MCSymbol that represents a target of this instruction at a given
1191
1191
// / operand number \p OpNum. If there's no symbol associated with
Original file line number Diff line number Diff line change @@ -274,8 +274,10 @@ std::optional<MCSymbol *> MCPlusBuilder::getLabel(const MCInst &Inst) const {
274
274
return std::nullopt;
275
275
}
276
276
277
- bool MCPlusBuilder::setLabel (MCInst &Inst, MCSymbol *Label) {
278
- getOrCreateAnnotationAs<MCSymbol *>(Inst, MCAnnotation::kLabel ) = Label;
277
+ bool MCPlusBuilder::setLabel (MCInst &Inst, MCSymbol *Label,
278
+ AllocatorIdTy AllocatorId) {
279
+ getOrCreateAnnotationAs<MCSymbol *>(Inst, MCAnnotation::kLabel , AllocatorId) =
280
+ Label;
279
281
return true ;
280
282
}
281
283
You can’t perform that action at this time.
0 commit comments