aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2007-08-21 00:21:21 +0000
committerAnders Carlsson <andersca@mac.com>2007-08-21 00:21:21 +0000
commitc9e2091efcb535110474434dd12015afdc3b1637 (patch)
tree25a7c51e891e0c4355d41f6c289559415ca8a4aa /CodeGen/CodeGenModule.h
parent7016a706c9fab0d7c1603e424c61abbff9077037 (diff)
Implement code generation for constant CFStrings.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41206 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.h')
-rw-r--r--CodeGen/CodeGenModule.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/CodeGen/CodeGenModule.h b/CodeGen/CodeGenModule.h
index fbebdcfcf5..97d6a02f47 100644
--- a/CodeGen/CodeGenModule.h
+++ b/CodeGen/CodeGenModule.h
@@ -16,6 +16,7 @@
#include "CodeGenTypes.h"
#include "llvm/ADT/DenseMap.h"
+#include "llvm/ADT/StringMap.h"
namespace llvm {
class Module;
@@ -40,6 +41,9 @@ class CodeGenModule {
llvm::Function *MemCpyFn;
llvm::DenseMap<const Decl*, llvm::Constant*> GlobalDeclMap;
+
+ llvm::StringMap<llvm::Constant*> CFConstantStringMap;
+ llvm::Constant *CFConstantStringClassRef;
public:
CodeGenModule(ASTContext &C, llvm::Module &M);
@@ -48,7 +52,7 @@ public:
CodeGenTypes &getTypes() { return Types; }
llvm::Constant *GetAddrOfGlobalDecl(const Decl *D);
-
+ llvm::Constant *GetAddrOfConstantCFString(const std::string& str);
llvm::Function *getMemCpyFn();
void EmitFunction(const FunctionDecl *FD);