git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118294
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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;
return new (Ctx) WeakRefExpr(A);
}
};
+} // end anonymous namespace
void MCELFStreamer::EmitWeakReference(MCSymbol *Alias, const MCSymbol *Symbol) {
getAssembler().getOrCreateSymbolData(*Symbol);