forked from OSchip/llvm-project
parent
1a093d2049
commit
0450e6dc4c
|
@ -54,7 +54,8 @@ public:
|
||||||
/// \param LinkingOutput - If this output will eventually feed the
|
/// \param LinkingOutput - If this output will eventually feed the
|
||||||
/// linker, then this is the final output name of the linked image.
|
/// linker, then this is the final output name of the linked image.
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const = 0;
|
const char *LinkingOutput) const = 0;
|
||||||
};
|
};
|
||||||
|
|
|
@ -446,7 +446,6 @@ void Driver::BuildActions(const ArgList &Args, ActionList &Actions) const {
|
||||||
} else if (A->getOption().isLinkerInput()) {
|
} else if (A->getOption().isLinkerInput()) {
|
||||||
// Just treat as object type, we could make a special type for
|
// Just treat as object type, we could make a special type for
|
||||||
// this if necessary.
|
// this if necessary.
|
||||||
A->claim();
|
|
||||||
Inputs.push_back(std::make_pair(types::TY_Object, A));
|
Inputs.push_back(std::make_pair(types::TY_Object, A));
|
||||||
|
|
||||||
} else if (A->getOption().getId() == options::OPT_x) {
|
} else if (A->getOption().getId() == options::OPT_x) {
|
||||||
|
|
|
@ -13,42 +13,47 @@ using namespace clang::driver;
|
||||||
using namespace clang::driver::tools;
|
using namespace clang::driver::tools;
|
||||||
|
|
||||||
void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcc::Preprocess::ConstructJob(Compilation &C, const JobAction &JA,
|
void gcc::Preprocess::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcc::Precompile::ConstructJob(Compilation &C, const JobAction &JA,
|
void gcc::Precompile::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcc::Compile::ConstructJob(Compilation &C, const JobAction &JA,
|
void gcc::Compile::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcc::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
void gcc::Assemble::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void gcc::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
void gcc::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const {
|
const char *LinkingOutput) const {
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,8 @@ namespace tools {
|
||||||
virtual bool hasIntegratedCPP() const { return true; }
|
virtual bool hasIntegratedCPP() const { return true; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
@ -43,7 +44,8 @@ namespace gcc {
|
||||||
virtual bool hasIntegratedCPP() const { return false; }
|
virtual bool hasIntegratedCPP() const { return false; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
@ -57,7 +59,8 @@ namespace gcc {
|
||||||
virtual bool hasIntegratedCPP() const { return true; }
|
virtual bool hasIntegratedCPP() const { return true; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
@ -71,7 +74,8 @@ namespace gcc {
|
||||||
virtual bool hasIntegratedCPP() const { return true; }
|
virtual bool hasIntegratedCPP() const { return true; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
@ -85,7 +89,8 @@ namespace gcc {
|
||||||
virtual bool hasIntegratedCPP() const { return false; }
|
virtual bool hasIntegratedCPP() const { return false; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
@ -99,7 +104,8 @@ namespace gcc {
|
||||||
virtual bool hasIntegratedCPP() const { return false; }
|
virtual bool hasIntegratedCPP() const { return false; }
|
||||||
|
|
||||||
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
virtual void ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
InputInfo &Output, InputInfoList &Inputs,
|
const InputInfo &Output,
|
||||||
|
const InputInfoList &Inputs,
|
||||||
const ArgList &TCArgs,
|
const ArgList &TCArgs,
|
||||||
const char *LinkingOutput) const;
|
const char *LinkingOutput) const;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue