1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Some common functionality from WinCOFFStreamer::EmitAssignment can be now

delegated to MCObjectStreamer.

llvm-svn: 169617
This commit is contained in:
Eli Bendersky 2012-12-07 17:55:28 +00:00
parent 8c2b2d7ccb
commit 2bf8413fe8

View File

@ -193,9 +193,7 @@ void WinCOFFStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
// don't really even do.
if (Value->getKind() != MCExpr::SymbolRef) {
getAssembler().getOrCreateSymbolData(*Symbol);
AddValueSymbols(Value);
Symbol->setVariableValue(Value);
MCObjectStreamer::EmitAssignment(Symbol, Value);
} else {
// FIXME: This is a horrible way to do this :(. This should really be
// handled after we are done with the MC* objects and immediately before