diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 06:07:59 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-03-18 06:07:59 +0000 |
| commit | 0450e6dc4c134ef759411616d03541e07370038b (patch) | |
| tree | 09fd4dde0228581e800c707140010b64bda3fe0b /clang/lib/Driver | |
| parent | 1a093d204979b07e68d6fa52bdd05f06ea8fc199 (diff) | |
| download | bcm5719-llvm-0450e6dc4c134ef759411616d03541e07370038b.tar.gz bcm5719-llvm-0450e6dc4c134ef759411616d03541e07370038b.zip | |
Driver: Add a dash of const.
llvm-svn: 67170
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Driver.cpp | 1 | ||||
| -rw-r--r-- | clang/lib/Driver/Tools.cpp | 19 | ||||
| -rw-r--r-- | clang/lib/Driver/Tools.h | 18 |
3 files changed, 24 insertions, 14 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index a3cd55fe5f5..35b206600d9 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -446,7 +446,6 @@ void Driver::BuildActions(const ArgList &Args, ActionList &Actions) const { } else if (A->getOption().isLinkerInput()) { // Just treat as object type, we could make a special type for // this if necessary. - A->claim(); Inputs.push_back(std::make_pair(types::TY_Object, A)); } else if (A->getOption().getId() == options::OPT_x) { diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index f849c2beac2..25023c16eff 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/lib/Driver/Tools.cpp @@ -13,42 +13,47 @@ using namespace clang::driver; using namespace clang::driver::tools; void Clang::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { - } void gcc::Preprocess::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { } void gcc::Precompile::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { } void gcc::Compile::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { } void gcc::Assemble::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { } void gcc::Link::ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const { diff --git a/clang/lib/Driver/Tools.h b/clang/lib/Driver/Tools.h index da9d3e2ea5a..d774e02ff0c 100644 --- a/clang/lib/Driver/Tools.h +++ b/clang/lib/Driver/Tools.h @@ -27,7 +27,8 @@ namespace tools { virtual bool hasIntegratedCPP() const { return true; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; @@ -43,7 +44,8 @@ namespace gcc { virtual bool hasIntegratedCPP() const { return false; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; @@ -57,7 +59,8 @@ namespace gcc { virtual bool hasIntegratedCPP() const { return true; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; @@ -71,7 +74,8 @@ namespace gcc { virtual bool hasIntegratedCPP() const { return true; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; @@ -85,7 +89,8 @@ namespace gcc { virtual bool hasIntegratedCPP() const { return false; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; @@ -99,7 +104,8 @@ namespace gcc { virtual bool hasIntegratedCPP() const { return false; } virtual void ConstructJob(Compilation &C, const JobAction &JA, - InputInfo &Output, InputInfoList &Inputs, + const InputInfo &Output, + const InputInfoList &Inputs, const ArgList &TCArgs, const char *LinkingOutput) const; }; |

