On Ubuntu 14.04, PT_NOTE is #defined in elf.h.
This causes potential confusion for compilation if code uses PT_NOTE from AMDGPUNote.h and also include the elf header, even you qualify the usage with AMDGPU::PT_NOTE.
Paths
| Differential D30750
Rename PT_NOTE namespace name used in AMDGPUPTNote.h ClosedPublic Authored by guansong on Mar 8 2017, 10:53 AM.
Details Summary On Ubuntu 14.04, PT_NOTE is #defined in elf.h. This causes potential confusion for compilation if code uses PT_NOTE from AMDGPUNote.h and also include the elf header, even you qualify the usage with AMDGPU::PT_NOTE.
Diff Detail
Event TimelineHerald added subscribers: tpr, dstuttard, nhaehnle and 2 others. · View Herald TranscriptMar 8 2017, 10:53 AM Comment Actions LGTM with a minor nit. Will you also be able to update opencl runtime once this change gets there?
This revision is now accepted and ready to land.Mar 8 2017, 11:43 AM Closed by commit rL297498: Rename PT_NOTE namespace name used in AMDGPUPTNote.h (authored by yaxunl). · Explain WhyMar 10 2017, 11:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 91388 llvm/trunk/lib/Target/AMDGPU/AMDGPUPTNote.h
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h
llvm/trunk/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
|