[llvm-branch-commits] [llvm-gcc-branch] r69105 - in /llvm-gcc-4.2/branches/Apple/Dib/gcc: llvm-backend.cpp testsuite/llvm.objc/2009-04-14-AsmSection.m
Bill Wendling
isanbard at gmail.com
Tue Apr 14 16:58:06 PDT 2009
Author: void
Date: Tue Apr 14 18:58:06 2009
New Revision: 69105
URL: http://llvm.org/viewvc/llvm-project?rev=69105&view=rev
Log:
--- Merging (from foreign repository) r69104 into '.':
A gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m
U gcc/llvm-backend.cpp
If we create a new global variable when resetting the initializer, then copy
over the section.
Added:
llvm-gcc-4.2/branches/Apple/Dib/gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m
Modified:
llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp?rev=69105&r1=69104&r2=69105&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp Tue Apr 14 18:58:06 2009
@@ -1198,6 +1198,7 @@
GV->getLinkage(), 0,
GV->getName(), TheModule);
NGV->setVisibility(GV->getVisibility());
+ NGV->setSection(GV->getSection());
GV->replaceAllUsesWith(TheFolder->CreateBitCast(NGV, GV->getType()));
changeLLVMConstant(GV, NGV);
delete GV;
Added: llvm-gcc-4.2/branches/Apple/Dib/gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m?rev=69105&view=auto
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m (added)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/testsuite/llvm.objc/2009-04-14-AsmSection.m Tue Apr 14 18:58:06 2009
@@ -0,0 +1,11 @@
+/* LLVM LOCAL file rdar://6763960 */
+/* { dg-do compile { target *-*-darwin* } } */
+/* { dg-options "-O0 -fobjc-abi-version=2" } */
+
+ at interface A
+ at end
+
+ at implementation A
+ at end
+
+/* { dg-final { scan-assembler "OBJC_CLASS_$_A.*section.*__DATA, __objc_data" } } */
More information about the llvm-branch-commits
mailing list