Put class into an anonymous namespace.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Nov 2010 19:56:38 +0000 (19:56 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 5 Nov 2010 19:56:38 +0000 (19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118294 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCELFStreamer.cpp

index 44c897b55599bce4b837d881afc3e11c3fd342f4..2a12fa240b6080931bbe068d6bd5b10a56de9398 100644 (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);