From af8decbde05389e761ff04b14fe011fec8526018 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 11 Jun 2010 22:43:38 +0000 Subject: [PATCH] Driver: Switch Compilation to return the translated arguments by default. llvm-svn: 105844 --- clang/include/clang/Driver/Compilation.h | 7 ++++--- clang/lib/Driver/Driver.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/clang/include/clang/Driver/Compilation.h b/clang/include/clang/Driver/Compilation.h index d9faa64103c3..5f062a121c6d 100644 --- a/clang/include/clang/Driver/Compilation.h +++ b/clang/include/clang/Driver/Compilation.h @@ -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, 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; } diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 4663fb9502b3..2ca30f1bacaf 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -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; }