]> granicus.if.org Git - clang/commitdiff
Update for changes in LLVM. Hopefully this is the last one for a while.
authorOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 23:14:14 +0000 (23:14 +0000)
committerOwen Anderson <resistor@mac.com>
Wed, 1 Jul 2009 23:14:14 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74657 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/CodeGen/ModuleBuilder.h
include/clang/Frontend/ASTConsumers.h
lib/CodeGen/ModuleBuilder.cpp
lib/Frontend/Backend.cpp
tools/clang-cc/clang-cc.cpp

index cf83aaf129559309120e7938b8f3a737387fb03e..12b74d51473e221bb43e58ecfa5098148f70fd80 100644 (file)
@@ -36,7 +36,7 @@ namespace clang {
   CodeGenerator *CreateLLVMCodeGen(Diagnostic &Diags,
                                    const std::string &ModuleName,
                                    const CompileOptions &CO,
-                                   const llvm::LLVMContext& C);
+                                   llvm::LLVMContext& C);
 }
 
 #endif
index 35b00f1441854d08aebea6b18fa57074458d9b97..be45202625586b79f62e44708be433d2571a96b5 100644 (file)
@@ -81,7 +81,7 @@ ASTConsumer *CreateBackendConsumer(BackendAction Action,
                                    const CompileOptions &CompileOpts,
                                    const std::string &ModuleID,
                                    llvm::raw_ostream *OS,
-                                   const llvm::LLVMContext& C);
+                                   llvm::LLVMContext& C);
 
 // HTML printer: uses the rewriter to convert source code to HTML with
 // syntax highlighting suitable for viewing in a web-browser.
index 3faedc12bc731705a45e3a16ab8798574255ded0..4835454b47df25cba78ad0f62f6190b2c9afb22f 100644 (file)
@@ -38,7 +38,7 @@ namespace {
     llvm::OwningPtr<CodeGen::CodeGenModule> Builder;
   public:
     CodeGeneratorImpl(Diagnostic &diags, const std::string& ModuleName,
-                      const CompileOptions &CO, const llvm::LLVMContext& C)
+                      const CompileOptions &CO, llvm::LLVMContext& C)
       : Diags(diags), CompileOpts(CO), M(new llvm::Module(ModuleName, C)) {}
     
     virtual ~CodeGeneratorImpl() {}
@@ -97,6 +97,6 @@ namespace {
 CodeGenerator *clang::CreateLLVMCodeGen(Diagnostic &Diags, 
                                         const std::string& ModuleName,
                                         const CompileOptions &CO,
-                                        const llvm::LLVMContext& C) {
+                                        llvm::LLVMContext& C) {
   return new CodeGeneratorImpl(Diags, ModuleName, CO, C);
 }
index 6b7f9ae940cc23e572cfd871addc9a18a716bdc3..1c536b07cee2b413d1428058820df2c76e6c047a 100644 (file)
@@ -76,7 +76,7 @@ namespace {
     BackendConsumer(BackendAction action, Diagnostic &Diags, 
                     const LangOptions &langopts, const CompileOptions &compopts,
                     const std::string &infile, llvm::raw_ostream* OS,
-                    const LLVMContext& C) :
+                    LLVMContext& C) :
       Action(action), 
       CompileOpts(compopts),
       AsmOutStream(OS), 
@@ -361,7 +361,7 @@ ASTConsumer *clang::CreateBackendConsumer(BackendAction Action,
                                           const CompileOptions &CompileOpts,
                                           const std::string& InFile,
                                           llvm::raw_ostream* OS,
-                                          const LLVMContext& C) {
+                                          LLVMContext& C) {
   return new BackendConsumer(Action, Diags, LangOpts, CompileOpts,
                              InFile, OS, C);
 }
index 341c10b9ad3ff04f0ffd8697e78ba4ee8e5e13a9..9433c1752e53fe20c607f55f3d6fb2d005af3f9c 100644 (file)
@@ -1748,7 +1748,7 @@ static llvm::raw_ostream* ComputeOutFile(const std::string& InFile,
 static void ProcessInputFile(Preprocessor &PP, PreprocessorFactory &PPF,
                              const std::string &InFile, ProgActions PA,
                              const llvm::StringMap<bool> &Features,
-                             const llvm::LLVMContext& Context) {
+                             llvm::LLVMContext& Context) {
   llvm::OwningPtr<llvm::raw_ostream> OS;
   llvm::OwningPtr<ASTConsumer> Consumer;
   bool ClearSourceMgr = false;