search for: getstringconstantprefix

Displaying 1 result from an estimated 1 matches for "getstringconstantprefix".

2009 Jun 03
1
[LLVMdev] RFA: Alignment of Strings
...================================================================== --- llvm-gcc.src/gcc/llvm-convert.cpp (revision 72733) +++ llvm-gcc.src/gcc/llvm-convert.cpp (working copy) @@ -7418,6 +7418,8 @@ TAI ? TAI->getStringConstantPrefix() : ".str", TheModule); + GV->setAlignment(TYPE_ALIGN(TREE_TYPE(exp))); + if (SlotP) *SlotP = GV; #ifdef LLVM_CSTRING_SECTION // For Darwin, try to put it into the .cstring section.