diff options
Diffstat (limited to 'llvm/include/llvm/MC/MCObjectStreamer.h')
-rw-r--r-- | llvm/include/llvm/MC/MCObjectStreamer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/MC/MCObjectStreamer.h b/llvm/include/llvm/MC/MCObjectStreamer.h index 1a1222562f1..c990534e538 100644 --- a/llvm/include/llvm/MC/MCObjectStreamer.h +++ b/llvm/include/llvm/MC/MCObjectStreamer.h @@ -147,8 +147,8 @@ public: bool emitAbsoluteSymbolDiff(const MCSymbol *Hi, const MCSymbol *Lo, unsigned Size) override; - bool mayHaveInstructions() const override { - return getCurrentSectionData()->hasInstructions(); + bool mayHaveInstructions(const MCSection &Sec) const override { + return Assembler->getOrCreateSectionData(Sec).hasInstructions(); } }; |