[PATCH] D36351: [lld][ELF] Add profile guided section layout
Rafael Avila de Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 31 11:12:39 PST 2018
Michael Spencer via Phabricator <reviews at reviews.llvm.org> writes:
> +struct EdgeDenseMapInfo {
> + static Edge getEmptyKey() {
> + return {DenseMapInfo<NodeIndex>::getEmptyKey(),
> + DenseMapInfo<NodeIndex>::getEmptyKey(), 0};
> + }
> + static Edge getTombstoneKey() {
> + return {DenseMapInfo<NodeIndex>::getTombstoneKey(),
> + DenseMapInfo<NodeIndex>::getTombstoneKey(), 0};
> + }
This is producing warnings:
/home/espindola/llvm/llvm/tools/lld/ELF/CallGraphSort.cpp:98:54:
warning: missing field 'PriorityPos' initializer
[-Wmissing-field-initializers]
DenseMapInfo<NodeIndex>::getEmptyKey(), 0};
^
/home/espindola/llvm/llvm/tools/lld/ELF/CallGraphSort.cpp:102:58:
warning: missing field 'PriorityPos' initializer
[-Wmissing-field-initializers]
DenseMapInfo<NodeIndex>::getTombstoneKey(), 0};
Cheers,
Rafael
More information about the llvm-commits
mailing list