diff options
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index d90ebb4b36..8e7bb405a1 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -39,6 +39,7 @@ namespace clang { class Decl; class Expr; class Stmt; + class StringLiteral; class NamedDecl; class ValueDecl; class VarDecl; @@ -134,6 +135,10 @@ public: llvm::Function *getBuiltinLibFunction(unsigned BuiltinID); llvm::Constant *GetAddrOfConstantCFString(const std::string& str); + /// getStringForStringLiteral - Return the appropriate bytes for a + /// string literal, properly padded to match the literal type. + std::string getStringForStringLiteral(const StringLiteral *E); + /// 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); |