Skip to content

Commit ded5c47

Browse files
committed
delete allocInitialFragment
Created using spr 1.3.5-bogner
1 parent 137b725 commit ded5c47

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

llvm/include/llvm/MC/MCContext.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,6 @@ class MCContext {
333333
void reportCommon(SMLoc Loc,
334334
std::function<void(SMDiagnostic &, const SourceMgr *)>);
335335

336-
MCFragment *allocInitialFragment(MCSection &Sec);
337-
338336
MCSymbolTableEntry &getSymbolTableEntry(StringRef Name);
339337

340338
MCSymbol *createSymbolImpl(const MCSymbolTableEntry *Name, bool IsTemporary);

llvm/lib/MC/MCContext.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,16 +200,6 @@ MCInst *MCContext::createMCInst() {
200200
return new (MCInstAllocator.Allocate()) MCInst;
201201
}
202202

203-
// Allocate the initial MCFragment for the begin symbol.
204-
MCFragment *MCContext::allocInitialFragment(MCSection &Sec) {
205-
assert(!Sec.curFragList()->Head);
206-
auto *F = allocFragment<MCFragment>();
207-
F->setParent(&Sec);
208-
Sec.curFragList()->Head = F;
209-
Sec.curFragList()->Tail = F;
210-
return F;
211-
}
212-
213203
//===----------------------------------------------------------------------===//
214204
// Symbol Manipulation
215205
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)