aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Driver/Compilation.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-01 20:30:52 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-01 20:30:52 +0000
commitdf35d7f1916140bfed5ab0bad2d5e2bc62c667e5 (patch)
tree5407849559bd0855af0d715aa79496ca4c3bb018 /include/clang/Driver/Compilation.h
parentc88a88f6f7672b6bb831dce9da4acfa0c846975f (diff)
Driver: Mark some Compilation members const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74636 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/Compilation.h')
-rw-r--r--include/clang/Driver/Compilation.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Driver/Compilation.h b/include/clang/Driver/Compilation.h
index 3ec221f41d..6414ef1369 100644
--- a/include/clang/Driver/Compilation.h
+++ b/include/clang/Driver/Compilation.h
@@ -32,10 +32,10 @@ namespace driver {
/// invocation.
class Compilation {
/// The driver we were created by.
- Driver &TheDriver;
+ const Driver &TheDriver;
/// The default tool chain.
- ToolChain &DefaultToolChain;
+ const ToolChain &DefaultToolChain;
/// The original (untranslated) input argument list.
InputArgList *Args;
@@ -56,7 +56,8 @@ class Compilation {
ArgStringList ResultFiles;
public:
- Compilation(Driver &D, ToolChain &DefaultToolChain, InputArgList *Args);
+ Compilation(const Driver &D, const ToolChain &DefaultToolChain,
+ InputArgList *Args);
~Compilation();
const Driver &getDriver() const { return TheDriver; }