CodeGen: be more conservative about setting section
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 25 Oct 2016 21:43:28 +0000 (21:43 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 25 Oct 2016 21:43:28 +0000 (21:43 +0000)
commit3c628af11789bdde668d1689724a42407c9cb517
tree961731a23c10d49885ee490a3d5df52a7326e59b
parenta49bd14843c390cccded497a77b376f497888c75
CodeGen: be more conservative about setting section

The section names currently are MachO specific.  Only set the section on the
variables if the file format is MachO.

llvm-svn: 285126
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/section-name.m [new file with mode: 0644]