Skip to content

Commit d4c7d0b

Browse files
committed
MCObjectStreamer: Replace getAssemblerPtr with getAssembler
In general getAssemblerPtr should only be called by MCParse. Revert some changes from https://reviews.llvm.org/D45164?id=143128
1 parent e37707b commit d4c7d0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/MC/MCObjectStreamer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ void MCObjectStreamer::emitLabelAtPos(MCSymbol *Symbol, SMLoc Loc,
261261

262262
void MCObjectStreamer::emitULEB128Value(const MCExpr *Value) {
263263
int64_t IntValue;
264-
if (Value->evaluateAsAbsolute(IntValue, getAssemblerPtr())) {
264+
if (Value->evaluateAsAbsolute(IntValue, getAssembler())) {
265265
emitULEB128IntValue(IntValue);
266266
return;
267267
}
@@ -270,7 +270,7 @@ void MCObjectStreamer::emitULEB128Value(const MCExpr *Value) {
270270

271271
void MCObjectStreamer::emitSLEB128Value(const MCExpr *Value) {
272272
int64_t IntValue;
273-
if (Value->evaluateAsAbsolute(IntValue, getAssemblerPtr())) {
273+
if (Value->evaluateAsAbsolute(IntValue, getAssembler())) {
274274
emitSLEB128IntValue(IntValue);
275275
return;
276276
}
@@ -727,7 +727,7 @@ void MCObjectStreamer::emitFill(const MCExpr &NumValues, int64_t Size,
727727
int64_t Expr, SMLoc Loc) {
728728
int64_t IntNumValues;
729729
// Do additional checking now if we can resolve the value.
730-
if (NumValues.evaluateAsAbsolute(IntNumValues, getAssemblerPtr())) {
730+
if (NumValues.evaluateAsAbsolute(IntNumValues, getAssembler())) {
731731
if (IntNumValues < 0) {
732732
getContext().getSourceManager()->PrintMessage(
733733
Loc, SourceMgr::DK_Warning,

0 commit comments

Comments
 (0)