mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Record a symbol's size which is needed for ELF symbol tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111170 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,6 +24,7 @@ namespace llvm {
|
||||
class raw_ostream;
|
||||
class MCAsmLayout;
|
||||
class MCAssembler;
|
||||
class MCBinaryExpr;
|
||||
class MCContext;
|
||||
class MCCodeEmitter;
|
||||
class MCExpr;
|
||||
@@ -453,6 +454,10 @@ public:
|
||||
// common symbol can never get a definition.
|
||||
uint64_t CommonSize;
|
||||
|
||||
/// SymbolSize - An expression describing how to calculate the size of
|
||||
/// a symbol. If a symbol has no size this field will be NULL.
|
||||
const MCExpr *SymbolSize;
|
||||
|
||||
/// CommonAlign - The alignment of the symbol, if it is 'common'.
|
||||
//
|
||||
// FIXME: Pack this in with other fields?
|
||||
@@ -510,6 +515,15 @@ public:
|
||||
return CommonSize;
|
||||
}
|
||||
|
||||
void setSize(const MCExpr *SS) {
|
||||
SymbolSize = SS;
|
||||
}
|
||||
|
||||
const MCExpr *getSize() const {
|
||||
return SymbolSize;
|
||||
}
|
||||
|
||||
|
||||
/// getCommonAlignment - Return the alignment of a 'common' symbol.
|
||||
unsigned getCommonAlignment() const {
|
||||
assert(isCommon() && "Not a 'common' symbol!");
|
||||
|
||||
Reference in New Issue
Block a user