Put class into an anonymous namespace.

llvm-svn: 118294
This commit is contained in:
Benjamin Kramer
2010-11-05 19:56:38 +00:00
parent 396dcf356f
commit 80bb80f5fc

View File

@@ -212,6 +212,7 @@ void MCELFStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
// that equals the original symbol (tmp = bar). With this hack the writer
// gets a relocation with tmp and can correctly implement weak references.
namespace {
class WeakRefExpr : public MCTargetExpr {
private:
const MCSymbolRefExpr *Alias;
@@ -235,6 +236,7 @@ public:
return new (Ctx) WeakRefExpr(A);
}
};
} // end anonymous namespace
void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
getAssembler().getOrCreateSymbolData(*Symbol);