diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-11 00:02:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-11 00:02:17 +0000 |
commit | a7ad98ff0919d6a24ea7c46634ea29bea551c1a0 (patch) | |
tree | 81b36b35fcba035193d751e5de0470fad9cc212c /CodeGen/CodeGenModule.h | |
parent | 68f624e9eb2d80b2e5c1a51471a76782cb1bc70b (diff) | |
download | clang-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.h | 3 |
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, |