mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Convert BindingExplicitlySet into a MCSymbolELF field.
I will pack it better in a followup patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238975 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -37,7 +37,6 @@ public:
|
||||
void reset() override {
|
||||
SeenIdent = false;
|
||||
LocalCommons.clear();
|
||||
BindingExplicitlySet.clear();
|
||||
BundleGroups.clear();
|
||||
MCObjectStreamer::reset();
|
||||
}
|
||||
@@ -106,8 +105,6 @@ private:
|
||||
|
||||
std::vector<LocalCommon> LocalCommons;
|
||||
|
||||
SmallPtrSet<MCSymbol *, 16> BindingExplicitlySet;
|
||||
|
||||
/// BundleGroups - The stack of fragments holding the bundle-locked
|
||||
/// instructions.
|
||||
llvm::SmallVector<MCDataFragment *, 4> BundleGroups;
|
||||
|
||||
@@ -17,9 +17,11 @@ class MCSymbolELF : public MCSymbol {
|
||||
/// symbol has no size this field will be NULL.
|
||||
const MCExpr *SymbolSize = nullptr;
|
||||
|
||||
mutable unsigned BindingSet : 1;
|
||||
|
||||
public:
|
||||
MCSymbolELF(const StringMapEntry<bool> *Name, bool isTemporary)
|
||||
: MCSymbol(true, Name, isTemporary) {}
|
||||
: MCSymbol(true, Name, isTemporary), BindingSet(false) {}
|
||||
void setSize(const MCExpr *SS) { SymbolSize = SS; }
|
||||
|
||||
const MCExpr *getSize() const { return SymbolSize; }
|
||||
@@ -36,6 +38,8 @@ public:
|
||||
void setBinding(unsigned Binding) const;
|
||||
unsigned getBinding() const;
|
||||
|
||||
bool isBindingSet() const { return BindingSet; }
|
||||
|
||||
static bool classof(const MCSymbol *S) { return S->isELF(); }
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user