summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCMachOStreamer.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-26 02:48:04 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-26 02:48:04 +0000
commitaef5317eddae9a24e1c5cb21805854ba3e329d49 (patch)
tree5e5a225fdd82d8d32e8a23d599359ee58f1d8f48 /llvm/lib/MC/MCMachOStreamer.cpp
parentfbddfdacdc38f5e0e8be458fde6c1ab71b979ef0 (diff)
downloadbcm5719-llvm-aef5317eddae9a24e1c5cb21805854ba3e329d49.tar.gz
bcm5719-llvm-aef5317eddae9a24e1c5cb21805854ba3e329d49.zip
llvm-mc/Mach-O: Set addresses for symbols.
llvm-svn: 80065
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 de1c6ed7122..bed0d43d379 100644
--- a/llvm/lib/MC/MCMachOStreamer.cpp
+++ b/llvm/lib/MC/MCMachOStreamer.cpp
@@ -134,6 +134,7 @@ void MCMachOStreamer::SwitchSection(const MCSection *Section) {
void MCMachOStreamer::EmitLabel(MCSymbol *Symbol) {
assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
+ // FIXME: We should also use offsets into Fill fragments.
MCDataFragment *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
if (!F)
F = new MCDataFragment(CurSectionData);
OpenPOWER on IntegriCloud