llvm-project/llvm/test/LTO/X86
Fangrui Song 82d0749749 [TargetLoweringObjectFileImpl] Make .llvmbc and .llvmcmd non-SHF_ALLOC
There are two ways .llvmbc can be produced:

* clang -c -fembed-bitcode=all (which also produces .llvmcmd)
* LTO backend: ld.lld -mllvm -lto-embed-bitcode or -plugin-opt=-lto-embed-bitcode

.llvmbc and .llvmcmd have the SHF_ALLOC flag, so they can be dropped by
--gc-sections.

This patch sets SectionKind::Metadata to drop the SHF_ALLOC flag. This
is conceptually correct: the two sections are not part of the process
image, so SHF_ALLOC is not appropriate.

`test/LTO/X86/embed-bitcode.ll`: changed `llvm-objcopy -O binary --only-section` to
`llvm-objcopy --dump-section`. `-O binary` does not dump non-SHF_ALLOC sections.

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D86374
2020-08-25 13:37:29 -07:00
..
Inputs
attrs.ll Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
bcsection.ll
cfi_endproc.ll
codemodel-1.ll [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
codemodel-2.ll [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
codemodel-3.ll
current-section.ll
diagnostic-handler-noexit.ll
diagnostic-handler-remarks-with-hotness.ll
diagnostic-handler-remarks.ll
disable-verify.ll
dllimport.ll
embed-bitcode.ll [TargetLoweringObjectFileImpl] Make .llvmbc and .llvmcmd non-SHF_ALLOC 2020-08-25 13:37:29 -07:00
internalize.ll
invalid.ll
keep-used-puts-during-instcombine.ll
libcall-overridden-via-alias.ll
linkonce_odr_func.ll
list-dependent-libraries.ll
list-symbols.ll
lit.local.cfg
llvm-lto-output.ll [llvm-objdump] -d: print `00000000 <foo>:` instead of `00000000 foo:` 2020-03-05 18:05:28 -08:00
no-undefined-puts-when-implemented.ll
objc-detection-i386.ll
objc-detection.ll
parallel.ll
pr25919.ll
pr38046.ll
print-macho-cpu.ll [LTO][Legacy] Add new API to query Mach-O CPU (sub)type 2020-02-28 12:56:05 -08:00
private-symbol.ll
remangle_intrinsics.ll
remangle_intrinsics_tbaa.ll
restore-externals.ll
runtime-library.ll
set-merged.ll
stdcall.ll
strip-debug-info-no-call-loc.ll
strip-debug-info.ll Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00
symver-asm.ll
symver-asm2.ll
symver-asm3.ll
tailcallelim.ll
triple-init.ll
triple-init2.ll
type-mapping-bug.ll
type-mapping-bug2.ll
type-mapping-bug3.ll [IR] Replace all uses of CallBase::getCalledValue() with getCalledOperand(). 2020-04-27 22:17:03 -07:00
unnamed.ll