Driver: Switch Compilation to return the translated arguments by default.

llvm-svn: 105844
This commit is contained in:
Daniel Dunbar 2010-06-11 22:43:38 +00:00
parent d0df9a40a3
commit af8decbde0
2 changed files with 5 additions and 4 deletions

View File

@ -50,7 +50,8 @@ class Compilation {
/// The root list of jobs.
JobList Jobs;
/// Cache of translated arguments for a particular tool chain.
/// Cache of translated arguments for a particular tool chain and bound
/// architecture.
llvm::DenseMap<std::pair<const ToolChain*, const char*>,
DerivedArgList*> TCArgs;
@ -69,9 +70,9 @@ public:
const ToolChain &getDefaultToolChain() const { return DefaultToolChain; }
const InputArgList &getArgs() const { return *Args; }
const InputArgList &getInputArgs() const { return *Args; }
const DerivedArgList &getTranslatedArgs() const { return *TranslatedArgs; }
const DerivedArgList &getArgs() const { return *TranslatedArgs; }
ActionList &getActions() { return Actions; }
const ActionList &getActions() const { return Actions; }

View File

@ -198,7 +198,7 @@ Compilation *Driver::BuildCompilation(int argc, const char **argv) {
// FIXME: This behavior shouldn't be here.
if (CCCPrintOptions) {
PrintOptions(C->getArgs());
PrintOptions(C->getInputArgs());
return C;
}