simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bit
authorChris Lattner <sabre@nondot.org>
Sun, 26 Jul 2009 00:51:36 +0000 (00:51 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 26 Jul 2009 00:51:36 +0000 (00:51 +0000)
commit5b42b45fb93c26b0c8bc6d3ea946a8bc4a4d9092
treef6d3e68fc4eda4940db755fc72073ed777adac5d
parent26ce308bbf6697a7ca748456a75ee653ef0aa44d
simplify DarwinTargetAsmInfo::SelectSectionForGlobal a bit
and make it more aggressive, we now put:

const int G2 __attribute__((weak)) = 42;

into the text (readonly) segment like gcc, previously we put
it into the data (readwrite) segment.

llvm-svn: 77104
llvm/lib/Target/DarwinTargetAsmInfo.cpp
llvm/test/CodeGen/X86/global-sections.ll