Skip to content

Commit dfc0899

Browse files
committed
Revert change in MachineBasicBlock.h
1 parent 997717a commit dfc0899

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

llvm/include/llvm/CodeGen/AsmPrinter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ class LLVM_ABI AsmPrinter : public MachineFunctionPass {
135135
/// default, this is equal to CurrentFnSym.
136136
MCSymbol *CurrentFnSymForSize = nullptr;
137137

138-
/// Vector of symbols marking the position of callsites in each basic block.
138+
/// Vector of symbols marking the position of callsites in the current
139+
/// function, keyed by their containing basic block.
139140
/// The callsite symbols of each block are stored in the order they appear
140141
/// in that block.
141142
DenseMap<const MachineBasicBlock *, SmallVector<MCSymbol *, 1>>
@@ -301,7 +302,7 @@ class LLVM_ABI AsmPrinter : public MachineFunctionPass {
301302
/// to emit them as well, return the whole set.
302303
ArrayRef<MCSymbol *> getAddrLabelSymbolToEmit(const BasicBlock *BB);
303304

304-
/// Creates a new symbol to be used for the beginning of a callsite at th
305+
/// Creates a new symbol to be used for the beginning of a callsite at the
305306
/// specified basic block.
306307
MCSymbol *createCallsiteSymbol(const MachineBasicBlock &MBB);
307308

llvm/include/llvm/CodeGen/MachineBasicBlock.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,6 @@ class MachineBasicBlock
725725
/// Returns the MCSymbol marking the end of this basic block.
726726
LLVM_ABI MCSymbol *getEndSymbol() const;
727727

728-
/// Returns a temporary MCSymbol marking the beginning of a callsite, and
729-
/// appends it to `CallsiteSymbols`.
730-
MCSymbol *createCallsiteSymbol() const;
731-
732728
/// Returns true if this block may have an INLINEASM_BR (overestimate, by
733729
/// checking if any of the successors are indirect targets of any inlineasm_br
734730
/// in the function).

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,8 +1497,7 @@ void AsmPrinter::emitBBAddrMapSection(const MachineFunction &MF) {
14971497
emitLabelDifferenceAsULEB128(MBBSymbol, PrevMBBEndSymbol);
14981498
const MCSymbol *CurrentLabel = MBBSymbol;
14991499
if (HasCalls) {
1500-
const SmallVectorImpl<MCSymbol *> &CallsiteSymbols =
1501-
CurrentFnCallsiteSymbols.lookup(&MBB);
1500+
auto CallsiteSymbols = CurrentFnCallsiteSymbols.lookup(&MBB);
15021501
OutStreamer->AddComment("number of callsites");
15031502
OutStreamer->emitULEB128IntValue(CallsiteSymbols.size());
15041503
for (const MCSymbol *CallsiteSymbol : CallsiteSymbols) {

0 commit comments

Comments
 (0)