Skip to content

Commit a8cffb8

Browse files
committed
Remove unused MCObjectFileInfo::SupportsWeakOmittedEHFrame
The code is related to pre-AsmPrinter legacy code (see 9cb0e94 in 2008). The only caller has been removed by bb237c7 in 2011.
1 parent 24b87b8 commit a8cffb8

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

llvm/include/llvm/MC/MCObjectFileInfo.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ class MCSection;
2929

3030
class LLVM_ABI MCObjectFileInfo {
3131
protected:
32-
/// True if target object file supports a weak_definition of constant 0 for an
33-
/// omitted EH frame.
34-
bool SupportsWeakOmittedEHFrame = false;
35-
3632
/// True if the target object file supports emitting a compact unwind section
3733
/// without an associated EH frame section.
3834
bool SupportsCompactUnwindWithoutEHFrame = false;
@@ -260,9 +256,6 @@ class LLVM_ABI MCObjectFileInfo {
260256
virtual ~MCObjectFileInfo();
261257
MCContext &getContext() const { return *Ctx; }
262258

263-
bool getSupportsWeakOmittedEHFrame() const {
264-
return SupportsWeakOmittedEHFrame;
265-
}
266259
bool getSupportsCompactUnwindWithoutEHFrame() const {
267260
return SupportsCompactUnwindWithoutEHFrame;
268261
}

llvm/lib/MC/MCObjectFileInfo.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ static bool useCompactUnwind(const Triple &T) {
6161
}
6262

6363
void MCObjectFileInfo::initMachOMCObjectFileInfo(const Triple &T) {
64-
// MachO
65-
SupportsWeakOmittedEHFrame = false;
66-
6764
EHFrameSection = Ctx->getMachOSection(
6865
"__TEXT", "__eh_frame",
6966
MachO::S_COALESCED | MachO::S_ATTR_NO_TOC |
@@ -1090,7 +1087,6 @@ void MCObjectFileInfo::initMCObjectFileInfo(MCContext &MCCtx, bool PIC,
10901087
Ctx = &MCCtx;
10911088

10921089
// Common.
1093-
SupportsWeakOmittedEHFrame = true;
10941090
SupportsCompactUnwindWithoutEHFrame = false;
10951091
OmitDwarfIfHaveCompactUnwind = false;
10961092

0 commit comments

Comments
 (0)