mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Put class into an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118294 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
080c092297
commit
f79856986d
@ -212,6 +212,7 @@ void MCELFStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
|
|||||||
// that equals the original symbol (tmp = bar). With this hack the writer
|
// that equals the original symbol (tmp = bar). With this hack the writer
|
||||||
// gets a relocation with tmp and can correctly implement weak references.
|
// gets a relocation with tmp and can correctly implement weak references.
|
||||||
|
|
||||||
|
namespace {
|
||||||
class WeakRefExpr : public MCTargetExpr {
|
class WeakRefExpr : public MCTargetExpr {
|
||||||
private:
|
private:
|
||||||
const MCSymbolRefExpr *Alias;
|
const MCSymbolRefExpr *Alias;
|
||||||
@ -235,6 +236,7 @@ public:
|
|||||||
return new (Ctx) WeakRefExpr(A);
|
return new (Ctx) WeakRefExpr(A);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} // end anonymous namespace
|
||||||
|
|
||||||
void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
|
void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
|
||||||
getAssembler().getOrCreateSymbolData(*Symbol);
|
getAssembler().getOrCreateSymbolData(*Symbol);
|
||||||
|
Loading…
Reference in New Issue
Block a user