mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Revert a series of commits starting at r228886 which is triggering some
regressions for LLDB on Linux. Rafael indicated on lldb-dev that we should just go ahead and revert these but that he wasn't at a computer. The patches backed out are as follows: r228980: Add support for having multiple sections with the name and ... r228889: Invert the section relocation map. r228888: Use the existing SymbolTableIndex intsead of doing a lookup. r228886: Create the Section -> Rel Section map when it is first needed. These patches look pretty nice to me, so hoping its not too hard to get them re-instated. =D git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229080 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -207,10 +207,6 @@ FunctionSections("function-sections",
|
||||
cl::desc("Emit functions into separate sections"),
|
||||
cl::init(false));
|
||||
|
||||
cl::opt<bool> UniqueSectionNames("unique-section-names",
|
||||
cl::desc("Give unique names to every section"),
|
||||
cl::init(true));
|
||||
|
||||
cl::opt<llvm::JumpTable::JumpTableType>
|
||||
JTableType("jump-table-type",
|
||||
cl::desc("Choose the type of Jump-Instruction Table for jumptable."),
|
||||
@@ -288,7 +284,6 @@ static inline TargetOptions InitTargetOptionsFromCodeGenFlags() {
|
||||
Options.UseInitArray = !UseCtors;
|
||||
Options.DataSections = DataSections;
|
||||
Options.FunctionSections = FunctionSections;
|
||||
Options.UniqueSectionNames = UniqueSectionNames;
|
||||
|
||||
Options.MCOptions = InitMCTargetOptionsFromFlags();
|
||||
Options.JTType = JTableType;
|
||||
|
||||
@@ -277,10 +277,6 @@ namespace llvm {
|
||||
unsigned Flags, unsigned EntrySize,
|
||||
StringRef Group);
|
||||
|
||||
const MCSectionELF *getELFSection(StringRef Section, unsigned Type,
|
||||
unsigned Flags, unsigned EntrySize,
|
||||
StringRef Group, bool Unique);
|
||||
|
||||
void renameELFSection(const MCSectionELF *Section, StringRef Name);
|
||||
|
||||
const MCSectionELF *CreateELFGroupSection();
|
||||
|
||||
@@ -39,8 +39,6 @@ class MCSectionELF : public MCSection {
|
||||
/// below.
|
||||
unsigned Flags;
|
||||
|
||||
bool Unique;
|
||||
|
||||
/// EntrySize - The size of each entry in this section. This size only
|
||||
/// makes sense for sections that contain fixed-sized entries. If a
|
||||
/// section does not contain fixed-sized entries 'EntrySize' will be 0.
|
||||
@@ -50,10 +48,10 @@ class MCSectionELF : public MCSection {
|
||||
|
||||
private:
|
||||
friend class MCContext;
|
||||
MCSectionELF(StringRef Section, unsigned type, unsigned flags, SectionKind K,
|
||||
unsigned entrySize, const MCSymbol *group, bool Unique)
|
||||
: MCSection(SV_ELF, K), SectionName(Section), Type(type), Flags(flags),
|
||||
Unique(Unique), EntrySize(entrySize), Group(group) {}
|
||||
MCSectionELF(StringRef Section, unsigned type, unsigned flags,
|
||||
SectionKind K, unsigned entrySize, const MCSymbol *group)
|
||||
: MCSection(SV_ELF, K), SectionName(Section), Type(type), Flags(flags),
|
||||
EntrySize(entrySize), Group(group) {}
|
||||
~MCSectionELF();
|
||||
|
||||
void setSectionName(StringRef Name) { SectionName = Name; }
|
||||
|
||||
@@ -171,8 +171,6 @@ public:
|
||||
return Options.MCOptions.AsmVerbose;
|
||||
}
|
||||
|
||||
bool getUniqueSectionNames() const { return Options.UniqueSectionNames; }
|
||||
|
||||
/// Return true if data objects should be emitted into their own section,
|
||||
/// corresponds to -fdata-sections.
|
||||
bool getDataSections() const {
|
||||
|
||||
@@ -78,8 +78,8 @@ namespace llvm {
|
||||
EnableFastISel(false), PositionIndependentExecutable(false),
|
||||
UseInitArray(false), DisableIntegratedAS(false),
|
||||
CompressDebugSections(false), FunctionSections(false),
|
||||
DataSections(false), UniqueSectionNames(true), TrapUnreachable(false),
|
||||
TrapFuncName(), FloatABIType(FloatABI::Default),
|
||||
DataSections(false), TrapUnreachable(false), TrapFuncName(),
|
||||
FloatABIType(FloatABI::Default),
|
||||
AllowFPOpFusion(FPOpFusion::Standard), JTType(JumpTable::Single),
|
||||
FCFI(false), ThreadModel(ThreadModel::POSIX),
|
||||
CFIType(CFIntegrity::Sub), CFIEnforcing(false), CFIFuncName() {}
|
||||
@@ -198,8 +198,6 @@ namespace llvm {
|
||||
/// Emit data into separate sections.
|
||||
unsigned DataSections : 1;
|
||||
|
||||
unsigned UniqueSectionNames : 1;
|
||||
|
||||
/// Emit target-specific trap instruction for 'unreachable' IR instructions.
|
||||
unsigned TrapUnreachable : 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user