diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 21:23:16 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 21:23:16 +0000 |
commit | c93f49832d2dae19a24d644c8021388fc5b099ee (patch) | |
tree | 28fa0d00a01c12ca42ea12dc0373c0b3094b6efe /lib/Frontend/Backend.cpp | |
parent | d45c36308e563e1fac1cd124d606f403f9a39a29 (diff) |
Hold the LLVMContext by reference instead of by pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74642 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/Backend.cpp')
-rw-r--r-- | lib/Frontend/Backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/Backend.cpp b/lib/Frontend/Backend.cpp index dc84cd8271..6b7f9ae940 100644 --- a/lib/Frontend/Backend.cpp +++ b/lib/Frontend/Backend.cpp @@ -76,7 +76,7 @@ namespace { BackendConsumer(BackendAction action, Diagnostic &Diags, const LangOptions &langopts, const CompileOptions &compopts, const std::string &infile, llvm::raw_ostream* OS, - LLVMContext* C) : + const 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, - LLVMContext* C) { + const LLVMContext& C) { return new BackendConsumer(Action, Diags, LangOpts, CompileOpts, InFile, OS, C); } |