diff options
author | Eli Bendersky <eliben@google.com> | 2012-12-07 17:55:28 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-12-07 17:55:28 +0000 |
commit | cd81dce7743265bb044171fe8584f799c43bc7d0 (patch) | |
tree | 03db59278aa6ff5803753ea567560e9ff81d55ce /lib/MC | |
parent | ef76b273f96d99a4a260f3dcadde8fbb96256cf3 (diff) | |
download | external_llvm-cd81dce7743265bb044171fe8584f799c43bc7d0.zip external_llvm-cd81dce7743265bb044171fe8584f799c43bc7d0.tar.gz external_llvm-cd81dce7743265bb044171fe8584f799c43bc7d0.tar.bz2 |
Some common functionality from WinCOFFStreamer::EmitAssignment can be now
delegated to MCObjectStreamer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/WinCOFFStreamer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/MC/WinCOFFStreamer.cpp b/lib/MC/WinCOFFStreamer.cpp index e8fe680..8c8ae3f 100644 --- a/lib/MC/WinCOFFStreamer.cpp +++ b/lib/MC/WinCOFFStreamer.cpp @@ -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 |