aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-11-05 19:56:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-11-05 19:56:38 +0000
commitf79856986d47553240fb3f5fe796faa2a57be1bb (patch)
treec729c1c4500a5ee50ea50c101475fb375cf2152a
parent080c09229739ec2b13f7bccc361994a8d26b4ed2 (diff)
downloadexternal_llvm-f79856986d47553240fb3f5fe796faa2a57be1bb.zip
external_llvm-f79856986d47553240fb3f5fe796faa2a57be1bb.tar.gz
external_llvm-f79856986d47553240fb3f5fe796faa2a57be1bb.tar.bz2
Put class into an anonymous namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118294 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/MC/MCELFStreamer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp
index 44c897b..2a12fa2 100644
--- a/lib/MC/MCELFStreamer.cpp
+++ b/lib/MC/MCELFStreamer.cpp
@@ -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);