aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCELFStreamer.cpp
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2012-12-07 17:42:41 +0000
committerEli Bendersky <eliben@google.com>2012-12-07 17:42:41 +0000
commitef76b273f96d99a4a260f3dcadde8fbb96256cf3 (patch)
tree60a8bafc7ac2f2b7afac8303e685cff92f7f42d8 /lib/MC/MCELFStreamer.cpp
parent6eb3e87df04f8b035562d9865292c23f5b79f1a2 (diff)
downloadexternal_llvm-ef76b273f96d99a4a260f3dcadde8fbb96256cf3.zip
external_llvm-ef76b273f96d99a4a260f3dcadde8fbb96256cf3.tar.gz
external_llvm-ef76b273f96d99a4a260f3dcadde8fbb96256cf3.tar.bz2
Lift EmitAssignment into MCObjectStreamer which gets rid of at least three
duplicate implementations in format-specific streamers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCELFStreamer.cpp')
-rw-r--r--lib/MC/MCELFStreamer.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp
index c58a6ae..b1952bf 100644
--- a/lib/MC/MCELFStreamer.cpp
+++ b/lib/MC/MCELFStreamer.cpp
@@ -100,14 +100,6 @@ void MCELFStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
llvm_unreachable("invalid assembler flag!");
}
-void MCELFStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
- // TODO: This is exactly the same as WinCOFFStreamer. Consider merging into
- // MCObjectStreamer.
- // FIXME: Lift context changes into super class.
- getAssembler().getOrCreateSymbolData(*Symbol);
- Symbol->setVariableValue(AddValueSymbols(Value));
-}
-
void MCELFStreamer::ChangeSection(const MCSection *Section) {
const MCSymbol *Grp = static_cast<const MCSectionELF *>(Section)->getGroup();
if (Grp)