[llvm-commits] [llvm] r118294 - /llvm/trunk/lib/MC/MCELFStreamer.cpp
Benjamin Kramer
benny.kra at googlemail.com
Fri Nov 5 12:56:38 PDT 2010
Author: d0k
Date: Fri Nov 5 14:56:38 2010
New Revision: 118294
URL: http://llvm.org/viewvc/llvm-project?rev=118294&view=rev
Log:
Put class into an anonymous namespace.
Modified:
llvm/trunk/lib/MC/MCELFStreamer.cpp
Modified: llvm/trunk/lib/MC/MCELFStreamer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFStreamer.cpp?rev=118294&r1=118293&r2=118294&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFStreamer.cpp (original)
+++ llvm/trunk/lib/MC/MCELFStreamer.cpp Fri Nov 5 14:56:38 2010
@@ -212,6 +212,7 @@
// 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 @@
return new (Ctx) WeakRefExpr(A);
}
};
+} // end anonymous namespace
void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
getAssembler().getOrCreateSymbolData(*Symbol);
More information about the llvm-commits
mailing list