[llvm-commits] [llvm-gcc-4.2] r65494 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Chris Lattner
sabre at nondot.org
Wed Feb 25 16:45:45 PST 2009
Author: lattner
Date: Wed Feb 25 18:45:41 2009
New Revision: 65494
URL: http://llvm.org/viewvc/llvm-project?rev=65494&view=rev
Log:
temporarily revert this patch, in addition to not working on non-darwin targets,
it also fails for empty strings. This breaks the llvm-gcc build, even on darwin.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=65494&r1=65493&r2=65494&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Feb 25 18:45:41 2009
@@ -7181,9 +7181,6 @@
TAI->getStringConstantPrefix() :
".str", TheModule);
if (SlotP) *SlotP = GV;
- // Try to put it into the .cstring (__TEXT, __cstring) section.
- if (StringIsConstant && static_cast<ConstantArray*>(Init)->isCString())
- GV->setSection("__TEXT, __cstring");
return GV;
}
More information about the llvm-commits
mailing list