diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-02-22 22:23:11 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-02-22 22:23:11 +0000 |
commit | 964b70d559fad083744ea2791def82c564087388 (patch) | |
tree | 7c9b53c866f77f720f425fbc81f5cfb7cb0227b5 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | 157a5d5312bda0ed8da6a434ebcecfe6e646c63e (diff) | |
download | llvm-964b70d559fad083744ea2791def82c564087388.zip llvm-964b70d559fad083744ea2791def82c564087388.tar.gz llvm-964b70d559fad083744ea2791def82c564087388.tar.bz2 |
[X86] Create mergeable constant pool entries for AVX
We supported creating mergeable constant pool entries for smaller
constants but not for 32-byte AVX constants.
llvm-svn: 261584
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index a3f9937..2948f69 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -469,6 +469,10 @@ void MCObjectFileInfo::initELFMCObjectFileInfo(Triple T) { Ctx->getELFSection(".rodata.cst16", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_MERGE, 16, ""); + MergeableConst32Section = + Ctx->getELFSection(".rodata.cst32", ELF::SHT_PROGBITS, + ELF::SHF_ALLOC | ELF::SHF_MERGE, 32, ""); + StaticCtorSection = Ctx->getELFSection(".ctors", ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_WRITE); |