diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2012-12-02 13:20:44 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2012-12-02 13:20:44 +0000 | 
| commit | 13cc256e404620c1de0cbcc4e43ce1e2dbbc4898 (patch) | |
| tree | 2732d02d7d51218d6eed98ac7fcfc5b8794896b5 /lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
| parent | 657bc3d9848e3be92029b2416031340988cd0111 (diff) | |
Notes
Diffstat (limited to 'lib/FrontendTool/ExecuteCompilerInvocation.cpp')
| -rw-r--r-- | lib/FrontendTool/ExecuteCompilerInvocation.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/lib/FrontendTool/ExecuteCompilerInvocation.cpp index bd50083bf1c99..c7c55b0211455 100644 --- a/lib/FrontendTool/ExecuteCompilerInvocation.cpp +++ b/lib/FrontendTool/ExecuteCompilerInvocation.cpp @@ -16,6 +16,7 @@  #include "clang/StaticAnalyzer/Frontend/FrontendActions.h"  #include "clang/ARCMigrate/ARCMTActions.h"  #include "clang/CodeGen/CodeGenAction.h" +#include "clang/Driver/Option.h"  #include "clang/Driver/Options.h"  #include "clang/Driver/OptTable.h"  #include "clang/Frontend/CompilerInvocation.h" @@ -23,7 +24,7 @@  #include "clang/Frontend/FrontendActions.h"  #include "clang/Frontend/FrontendDiagnostic.h"  #include "clang/Frontend/FrontendPluginRegistry.h" -#include "clang/Rewrite/FrontendActions.h" +#include "clang/Rewrite/Frontend/FrontendActions.h"  #include "llvm/Support/ErrorHandling.h"  #include "llvm/Support/DynamicLibrary.h"  using namespace clang; @@ -137,7 +138,9 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {    if (Clang->getFrontendOpts().ShowHelp) {      OwningPtr<driver::OptTable> Opts(driver::createDriverOptTable());      Opts->PrintHelp(llvm::outs(), "clang -cc1", -                    "LLVM 'Clang' Compiler: http://clang.llvm.org"); +                    "LLVM 'Clang' Compiler: http://clang.llvm.org", +                    /*Include=*/driver::options::CC1Option, +                    /*Exclude=*/0);      return 0;    } @@ -175,7 +178,7 @@ bool clang::ExecuteCompilerInvocation(CompilerInstance *Clang) {    // Honor -analyzer-checker-help.    // This should happen AFTER plugins have been loaded! -  if (Clang->getAnalyzerOpts().ShowCheckerHelp) { +  if (Clang->getAnalyzerOpts()->ShowCheckerHelp) {      ento::printCheckerHelp(llvm::outs(), Clang->getFrontendOpts().Plugins);      return 0;    } | 
