[AMDGPU] Change section name with metadata access
authorPiotr Sobczak <piotr.sobczak@amd.com>
Thu, 3 Jan 2019 11:22:58 +0000 (11:22 +0000)
committerPiotr Sobczak <piotr.sobczak@amd.com>
Thu, 3 Jan 2019 11:22:58 +0000 (11:22 +0000)
commit3abef8f9ea5208b92e7bdd9569fc2ab3f82590c9
tree9dde85720b0228ed4459688c201e68482e4a1106
parentf760f5aef404b0767c06f64da219032e3e7bb3bd
[AMDGPU] Change section name with metadata access

Summary:
The commit rL348922 introduced a means to set Metadata
section kind for a global variable, if its explicit section
name was prefixed with ".AMDGPU.metadata.".

This patch changes that prefix to ".AMDGPU.comment.",
as "metadata" in the section name might lead to
ambiguity with metadata used by AMD PAL runtime.

Change-Id: Idd4748800d6fe801441d91595fc21e5a4171e668

Reviewers: kzhuravl

Reviewed By: kzhuravl

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D56197

llvm-svn: 350292
llvm/lib/Target/AMDGPU/AMDGPUTargetObjectFile.cpp
llvm/test/CodeGen/AMDGPU/elf.metadata.ll