diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-12-22 00:07:40 +0000 | 
| commit | bfef399519ca9b8a4b4c6b563253bad7e0eeffe0 (patch) | |
| tree | df8df0b0067b381eab470a3b8f28d14a552a6340 /lib/Frontend/CreateInvocationFromCommandLine.cpp | |
| parent | 6a0372513edbc473b538d2f724efac50405d6fef (diff) | |
Notes
Diffstat (limited to 'lib/Frontend/CreateInvocationFromCommandLine.cpp')
| -rw-r--r-- | lib/Frontend/CreateInvocationFromCommandLine.cpp | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/lib/Frontend/CreateInvocationFromCommandLine.cpp b/lib/Frontend/CreateInvocationFromCommandLine.cpp index e25eb4322c55..78f39d4298af 100644 --- a/lib/Frontend/CreateInvocationFromCommandLine.cpp +++ b/lib/Frontend/CreateInvocationFromCommandLine.cpp @@ -13,15 +13,16 @@  #include "clang/Frontend/Utils.h"  #include "clang/Basic/DiagnosticOptions.h" -#include "clang/Driver/ArgList.h"  #include "clang/Driver/Compilation.h"  #include "clang/Driver/Driver.h"  #include "clang/Driver/Options.h"  #include "clang/Driver/Tool.h"  #include "clang/Frontend/CompilerInstance.h"  #include "clang/Frontend/FrontendDiagnostic.h" +#include "llvm/Option/ArgList.h"  #include "llvm/Support/Host.h"  using namespace clang; +using namespace llvm::opt;  /// createInvocationFromCommandLine - Construct a compiler invocation object for  /// a command line argument vector. @@ -55,7 +56,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,    // Just print the cc1 options if -### was present.    if (C->getArgs().hasArg(driver::options::OPT__HASH_HASH_HASH)) { -    C->PrintJob(llvm::errs(), C->getJobs(), "\n", true); +    C->getJobs().Print(llvm::errs(), "\n", true);      return 0;    } @@ -65,7 +66,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,    if (Jobs.size() != 1 || !isa<driver::Command>(*Jobs.begin())) {      SmallString<256> Msg;      llvm::raw_svector_ostream OS(Msg); -    C->PrintJob(OS, C->getJobs(), "; ", true); +    Jobs.Print(OS, "; ", true);      Diags->Report(diag::err_fe_expected_compiler_job) << OS.str();      return 0;    } @@ -76,7 +77,7 @@ clang::createInvocationFromCommandLine(ArrayRef<const char *> ArgList,      return 0;    } -  const driver::ArgStringList &CCArgs = Cmd->getArguments(); +  const ArgStringList &CCArgs = Cmd->getArguments();    OwningPtr<CompilerInvocation> CI(new CompilerInvocation());    if (!CompilerInvocation::CreateFromArgs(*CI,                                       const_cast<const char **>(CCArgs.data()), | 
