summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-26 00:18:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-26 00:18:21 +0000
commitc2c0bf961f8e28c68e3806ac4594b209f8f92fe3 (patch)
treef1ea9a283eb4f101970117d553255d0429e5d45c /llvm/lib/MC/MCMachOStreamer.cpp
parent3b1938dda49266a30e7a4a38ee00b472c3584bca (diff)
downloadbcm5719-llvm-c2c0bf961f8e28c68e3806ac4594b209f8f92fe3.tar.gz
bcm5719-llvm-c2c0bf961f8e28c68e3806ac4594b209f8f92fe3.zip
llvm-mc: Improve indirect symbol support (add the indirect index table).
llvm-svn: 80059
Diffstat (limited to 'llvm/lib/MC/MCMachOStreamer.cpp')
-rw-r--r--llvm/lib/MC/MCMachOStreamer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCMachOStreamer.cpp b/llvm/lib/MC/MCMachOStreamer.cpp
index f49f6e05efa..de1c6ed7122 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -168,6 +168,8 @@ void MCMachOStreamer::EmitSymbolAttribute(MCSymbol *Symbol,
// Indirect symbols are handled differently, to match how 'as' handles
// them. This makes writing matching .o files easier.
if (Attribute == MCStreamer::IndirectSymbol) {
+ // Note that we intentionally cannot use the symbol data here; this is
+ // important for matching the string table that 'as' generates.
IndirectSymbolData ISD;
ISD.Symbol = Symbol;
ISD.SectionData = CurSectionData;
OpenPOWER on IntegriCloud