mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 19:35:54 +00:00
llvm-mc: Store MCSymbolData value as a pointer (to make MSVC happy).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80652 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
46e0faa81c
commit
efbb5330b8
@ -437,7 +437,7 @@ public:
|
|||||||
// FIXME: Same concerns as with SectionData.
|
// FIXME: Same concerns as with SectionData.
|
||||||
class MCSymbolData : public ilist_node<MCSymbolData> {
|
class MCSymbolData : public ilist_node<MCSymbolData> {
|
||||||
public:
|
public:
|
||||||
const MCSymbol &Symbol;
|
const MCSymbol *Symbol;
|
||||||
|
|
||||||
/// Fragment - The fragment this symbol's value is relative to, if any.
|
/// Fragment - The fragment this symbol's value is relative to, if any.
|
||||||
MCFragment *Fragment;
|
MCFragment *Fragment;
|
||||||
@ -480,7 +480,7 @@ public:
|
|||||||
/// @name Accessors
|
/// @name Accessors
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
const MCSymbol &getSymbol() const { return Symbol; }
|
const MCSymbol &getSymbol() const { return *Symbol; }
|
||||||
|
|
||||||
MCFragment *getFragment() const { return Fragment; }
|
MCFragment *getFragment() const { return Fragment; }
|
||||||
void setFragment(MCFragment *Value) { Fragment = Value; }
|
void setFragment(MCFragment *Value) { Fragment = Value; }
|
||||||
|
@ -926,11 +926,11 @@ MCSectionData::LookupFixup(const MCFragment *Fragment, uint64_t Offset) const {
|
|||||||
|
|
||||||
/* *** */
|
/* *** */
|
||||||
|
|
||||||
MCSymbolData::MCSymbolData() : Symbol(*(const MCSymbol*)0) {}
|
MCSymbolData::MCSymbolData() : Symbol(0) {}
|
||||||
|
|
||||||
MCSymbolData::MCSymbolData(const MCSymbol &_Symbol, MCFragment *_Fragment,
|
MCSymbolData::MCSymbolData(const MCSymbol &_Symbol, MCFragment *_Fragment,
|
||||||
uint64_t _Offset, MCAssembler *A)
|
uint64_t _Offset, MCAssembler *A)
|
||||||
: Symbol(_Symbol), Fragment(_Fragment), Offset(_Offset),
|
: Symbol(&_Symbol), Fragment(_Fragment), Offset(_Offset),
|
||||||
IsExternal(false), IsPrivateExtern(false),
|
IsExternal(false), IsPrivateExtern(false),
|
||||||
CommonSize(0), CommonAlign(0), Flags(0), Index(0)
|
CommonSize(0), CommonAlign(0), Flags(0), Index(0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user