summaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-11 00:02:17 +0000
committerChris Lattner <sabre@nondot.org>2008-02-11 00:02:17 +0000
commita7ad98ff0919d6a24ea7c46634ea29bea551c1a0 (patch)
tree81b36b35fcba035193d751e5de0470fad9cc212c /CodeGen/CodeGenModule.h
parent68f624e9eb2d80b2e5c1a51471a76782cb1bc70b (diff)
downloadclang-a7ad98ff0919d6a24ea7c46634ea29bea551c1a0.tar.gz
Fix PR1992 by computing the right type for string literals, which
is an array type not a pointer type. This requires updating some diags that change and updating the code generator to handle the proper form of strings. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r--CodeGen/CodeGenModule.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index 7c236e0ce8..92060887af 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -80,6 +80,9 @@ public:
///
llvm::Function *getBuiltinLibFunction(unsigned BuiltinID);
llvm::Constant *GetAddrOfConstantCFString(const std::string& str);
+
+ /// GetAddrOfConstantString -- returns a pointer to the character
+ /// array containing the literal. The result is pointer to array type.
llvm::Constant *GetAddrOfConstantString(const std::string& str);
llvm::Function *getMemCpyFn();
llvm::Function *getIntrinsic(unsigned IID, const llvm::Type **Tys = 0,