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 | 6dfdf8c97a79b14ecca3aba0bc1aff612cd62226 (patch) | |
tree | 77a7f034595384b4c5d93cb367c245fa669223f4 /clang/Driver/HTMLPrint.cpp | |
parent | 4c3116437cc19d05b3031b8e99566ef47bf463e8 (diff) | |
download | bcm5719-llvm-6dfdf8c97a79b14ecca3aba0bc1aff612cd62226.tar.gz bcm5719-llvm-6dfdf8c97a79b14ecca3aba0bc1aff612cd62226.zip |
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!
llvm-svn: 54621
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
0 files changed, 0 insertions, 0 deletions