Implement support for -fwritable-strings and make the code generator

merge string literals when it is not provided.

llvm-svn: 44394
This commit is contained in:
Chris Lattner
2007-11-28 05:34:05 +00:00
parent e04dc1fa4d
commit fb30009465
9 changed files with 77 additions and 51 deletions

View File

@@ -18,9 +18,9 @@ using namespace clang;
/// Init - Create an ModuleBuilder with the specified ASTContext.
clang::CodeGen::CodeGenModule *
clang::CodeGen::Init(ASTContext &Context, llvm::Module &M,
const llvm::TargetData &TD) {
return new CodeGenModule(Context, M, TD);
clang::CodeGen::Init(ASTContext &Context, const LangOptions &Features,
llvm::Module &M, const llvm::TargetData &TD) {
return new CodeGenModule(Context, Features, M, TD);
}
void clang::CodeGen::Terminate(CodeGenModule *B) {