mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Refactor duplicated code.
No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224935 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -67,14 +67,6 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
/// isSectionAtomizable - Check whether the given section can be split into
|
||||
/// atoms.
|
||||
///
|
||||
/// \see MCAssembler::isSymbolLinkerVisible().
|
||||
virtual bool isSectionAtomizable(const MCSection &Section) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
/// @name Target Fixup Interfaces
|
||||
/// @{
|
||||
|
||||
|
||||
@@ -382,6 +382,12 @@ public:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/// \brief True if the section is atomized using the symbols in it.
|
||||
/// This is false if the section is not atomized at all (most ELF sections) or
|
||||
/// if it is atomized based on its contents (MachO' __TEXT,__cstring for
|
||||
/// example).
|
||||
virtual bool isSectionAtomizableBySymbols(const MCSection &Section) const;
|
||||
|
||||
virtual const MCExpr *getExprForPersonalitySymbol(const MCSymbol *Sym,
|
||||
unsigned Encoding,
|
||||
MCStreamer &Streamer) const;
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
|
||||
namespace llvm {
|
||||
class MCAsmInfoDarwin : public MCAsmInfo {
|
||||
virtual void anchor();
|
||||
public:
|
||||
explicit MCAsmInfoDarwin();
|
||||
bool isSectionAtomizableBySymbols(const MCSection &Section) const override;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user