]> granicus.if.org Git - clang/commit
IRgen/Obj-C: Emit CFStrings and NSStrings with the alignment of the char type,
authorDaniel Dunbar <daniel@zuster.org>
Tue, 12 Apr 2011 23:30:52 +0000 (23:30 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 12 Apr 2011 23:30:52 +0000 (23:30 +0000)
commitf7e903d7a30891083420c07ebeed281726a101d6
treecfa173fd495fd26db7598c28828c15c5530e1acc
parent6591271275f7a3db357f3cb7af37ef86e800e4ba
IRgen/Obj-C: Emit CFStrings and NSStrings with the alignment of the char type,
there is no reason to align them higher.
 - This roughly matches llvm-gcc's r126913.
 - It is an open question whether or not we should do this for cstring's in
   general (code size vs optimization potential), for now we just match llvm-gcc
   until someone wants to run some experiments.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129410 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenObjC/constant-strings.m