mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Properly MCize the section switch, removing a FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151639 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3bf15ced2b
commit
21a1401413
@ -422,8 +422,10 @@ bool PPCLinuxAsmPrinter::doFinalization(Module &M) {
|
||||
bool isPPC64 = TD->getPointerSizeInBits() == 64;
|
||||
|
||||
if (isPPC64 && !TOC.empty()) {
|
||||
// FIXME 64-bit SVR4: Use MCSection here?
|
||||
OutStreamer.EmitRawText(StringRef("\t.section\t\".toc\",\"aw\""));
|
||||
const MCSectionELF *Section = OutStreamer.getContext().getELFSection(".toc",
|
||||
ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC,
|
||||
SectionKind::getReadOnly());
|
||||
OutStreamer.SwitchSection(Section);
|
||||
|
||||
// FIXME: This is nondeterminstic!
|
||||
for (DenseMap<MCSymbol*, MCSymbol*>::iterator I = TOC.begin(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user