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 | 03200753ee66c33e27afc9e09a2108a5ad8366a8 (patch) | |
| tree | b572027a7d227c781009af21712feb03c922defd /clang/tools/clang-cc | |
| parent | bbbf805049b18bf06b771204d15432c89382e01e (diff) | |
| download | bcm5719-llvm-03200753ee66c33e27afc9e09a2108a5ad8366a8.tar.gz bcm5719-llvm-03200753ee66c33e27afc9e09a2108a5ad8366a8.zip | |
Hold the LLVMContext by reference instead of by pointer.
llvm-svn: 74642
Diffstat (limited to 'clang/tools/clang-cc')
| -rw-r--r-- | clang/tools/clang-cc/clang-cc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/clang-cc/clang-cc.cpp b/clang/tools/clang-cc/clang-cc.cpp index 69a540bd35b..341c10b9ad3 100644 --- a/clang/tools/clang-cc/clang-cc.cpp +++ b/clang/tools/clang-cc/clang-cc.cpp @@ -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, - llvm::LLVMContext* Context) { + const llvm::LLVMContext& Context) { llvm::OwningPtr<llvm::raw_ostream> OS; llvm::OwningPtr<ASTConsumer> Consumer; bool ClearSourceMgr = false; @@ -2284,7 +2284,7 @@ int main(int argc, char **argv) { ((PathDiagnosticClient*)DiagClient.get())->SetPreprocessor(PP.get()); // Process the source file. - ProcessInputFile(*PP, PPFactory, InFile, ProgAction, Features, &Context); + ProcessInputFile(*PP, PPFactory, InFile, ProgAction, Features, Context); HeaderInfo.ClearFileInfo(); DiagClient->setLangOptions(0); |

