aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-11-01 02:23:42 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-11-01 02:23:42 +0000
commitfcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd (patch)
tree31dcc35909782f2d6ab9fb0d02454fe351560775 /clang/lib/CodeGen/CodeGenModule.h
parent703e7153af87981472770a793cb25d4893d381ec (diff)
downloadllvm-fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd.zip
llvm-fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd.tar.gz
llvm-fcec630a57b6c6d30d6d0d6c0ed95c21fe96a5bd.tar.bz2
Fix the representation of wide strings in the AST and IR so that it uses the native representation of integers for the elements. This fixes a bunch of nastiness involving
treating wide strings as a series of bytes. Patch by Seth Cantrell. llvm-svn: 143417
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index ea2e1776..0ce698a 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -565,6 +565,10 @@ public:
/// -fconstant-string-class=class_name option.
llvm::Constant *GetAddrOfConstantString(const StringLiteral *Literal);
+ /// GetConstantArrayFromStringLiteral - Return a constant array for the given
+ /// string.
+ llvm::Constant *GetConstantArrayFromStringLiteral(const StringLiteral *E);
+
/// GetAddrOfConstantStringFromLiteral - Return a pointer to a constant array
/// for the given string literal.
llvm::Constant *GetAddrOfConstantStringFromLiteral(const StringLiteral *S);