diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-10 20:25:57 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-10 20:25:57 +0000 |
commit | 1e04976fc2611d8cc06986a81deed4c42183b870 (patch) | |
tree | 1c6d0b660c3141ec9bf4ba557f8080f8656e8537 /lib/Analysis/RValues.cpp | |
parent | 7bfaaaecb3113f955db31e8d8a51acffd1bc0c27 (diff) |
Back out r54608 (inline string literals were getting an extra '\0')
temporarily, I assumed GetAddrForConstantString literal was being
used consistently but it doesn't look like it is.
Factored out a CodeGenModule::getStringForStringLiteral which handles
extracting a std::string for the bytes of a StringLiteral, padded to
match the type.
Update EmitLValue to use getStringForStringLiteral, this was
previously not padding strings correctly. Good thing we only emit
strings in 4 different places!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/RValues.cpp')
0 files changed, 0 insertions, 0 deletions