summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-18 17:28:24 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-18 17:28:24 +0000
commitd5563f420a17f93858fbcc76a7fdfc4d47dbe16a (patch)
tree32886eb0c9d5c17bfb48552522f5cb8ea53a28b5 /llvm/lib/MC/MCMachOStreamer.cpp
parentf16c12d7a197b332330c9cdebd4695962342ae77 (diff)
downloadbcm5719-llvm-d5563f420a17f93858fbcc76a7fdfc4d47dbe16a.tar.gz
bcm5719-llvm-d5563f420a17f93858fbcc76a7fdfc4d47dbe16a.zip
MC/Mach-O: Implement support for setting indirect symbol table offset in section header.
Also, create symbol data for LHS of assignment, to match 'as' symbol ordering better. llvm-svn: 104033
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index f1dc34944dd..e4ddf1a85d2 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -216,6 +216,7 @@ void MCMachOStreamer::EmitAssemblerFlag(MCAssemblerFlag Flag) {
void MCMachOStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
// FIXME: Lift context changes into super class.
+ Assembler.getOrCreateSymbolData(*Symbol);
Symbol->setVariableValue(AddValueSymbols(Value));
}
OpenPOWER on IntegriCloud