Driver: Add a dash of const.

llvm-svn: 67170
This commit is contained in:
Daniel Dunbar 2009-03-18 06:07:59 +00:00
parent 1a093d2049
commit 0450e6dc4c
4 changed files with 26 additions and 15 deletions

View File

@ -54,7 +54,8 @@ public:
/// \param LinkingOutput - If this output will eventually feed the
/// linker, then this is the final output name of the linked image.
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 = 0;
};

View File

@ -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) {

View File

@ -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 {

View File

@ -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;
};