diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-15 21:56:50 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-15 21:56:50 +0000 |
commit | fe8d866fc75f84119e5ff334c46e4e1262d4b617 (patch) | |
tree | 4f2aca2c17eba7291823754e97c0beeaad7cd83c /llvm/lib/MC/MCAssembler.cpp | |
parent | 232dc953ac850f7206b43de53192eff75487b1f8 (diff) | |
download | bcm5719-llvm-fe8d866fc75f84119e5ff334c46e4e1262d4b617.tar.gz bcm5719-llvm-fe8d866fc75f84119e5ff334c46e4e1262d4b617.zip |
MC/Mach-O/x86_64: Temporary labels in cstring sections require symbols (and external relocations, but we don't have x86_64 relocations yet).
llvm-svn: 98583
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 0d00ed17525..4cf8b7e522b 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -674,7 +674,10 @@ public: const MCSymbol &Symbol = it->getSymbol(); // Ignore assembler temporaries. - if (it->getSymbol().isTemporary()) + if (it->getSymbol().isTemporary() && + (!it->getFragment() || + !Asm.getBackend().doesSectionRequireSymbols( + it->getFragment()->getParent()->getSection()))) continue; if (!it->isExternal() && !Symbol.isUndefined()) @@ -710,7 +713,10 @@ public: const MCSymbol &Symbol = it->getSymbol(); // Ignore assembler temporaries. - if (it->getSymbol().isTemporary()) + if (it->getSymbol().isTemporary() && + (!it->getFragment() || + !Asm.getBackend().doesSectionRequireSymbols( + it->getFragment()->getParent()->getSection()))) continue; if (it->isExternal() || Symbol.isUndefined()) |