diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-02-02 23:45:13 +0000 | 
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-02-02 23:45:13 +0000 | 
| commit | 2e1296594236e38145a01397a4e6094edbefaaab (patch) | |
| tree | 023acd6de3fb92d4e159e401046468790641da1e | |
| parent | a6a60d0d87192d1cd99e46664c00e8e1d8d21da3 (diff) | |
| download | bcm5719-llvm-2e1296594236e38145a01397a4e6094edbefaaab.tar.gz bcm5719-llvm-2e1296594236e38145a01397a4e6094edbefaaab.zip  | |
Rename -dependency-graphviz to -dependencncy-dot
llvm-svn: 149645
| -rw-r--r-- | clang/include/clang/Driver/CC1Options.td | 4 | ||||
| -rw-r--r-- | clang/include/clang/Frontend/DependencyOutputOptions.h | 2 | ||||
| -rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 4 | ||||
| -rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 2 | ||||
| -rw-r--r-- | clang/lib/Frontend/DependencyGraph.cpp | 3 | 
5 files changed, 8 insertions, 7 deletions
diff --git a/clang/include/clang/Driver/CC1Options.td b/clang/include/clang/Driver/CC1Options.td index 662095e207b..3d36340e86d 100644 --- a/clang/include/clang/Driver/CC1Options.td +++ b/clang/include/clang/Driver/CC1Options.td @@ -233,8 +233,8 @@ def pg : Flag<"-pg">, HelpText<"Enable mcount instrumentation">;  def dependency_file : Separate<"-dependency-file">,    HelpText<"Filename (or -) to write dependency output to">; -def dependency_graphviz : Separate<"-dependency-graphviz">, -  HelpText<"Filename to write GraphViz-formatted header dependencies to">; +def dependency_dot : Separate<"-dependency-dot">, +  HelpText<"Filename to write DOT-formatted header dependencies to">;  def sys_header_deps : Flag<"-sys-header-deps">,    HelpText<"Include system headers in dependency output">;  def header_include_file : Separate<"-header-include-file">, diff --git a/clang/include/clang/Frontend/DependencyOutputOptions.h b/clang/include/clang/Frontend/DependencyOutputOptions.h index 63e2abf8879..83976c36048 100644 --- a/clang/include/clang/Frontend/DependencyOutputOptions.h +++ b/clang/include/clang/Frontend/DependencyOutputOptions.h @@ -40,7 +40,7 @@ public:    std::vector<std::string> Targets;    /// \brief The file to write GraphViz-formatted header dependencies to. -  std::string GraphvizOutputFile; +  std::string DOTOutputFile;  public:    DependencyOutputOptions() { diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 97dc708cc40..03dc6261708 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -275,8 +275,8 @@ void CompilerInstance::createPreprocessor() {    const DependencyOutputOptions &DepOpts = getDependencyOutputOpts();    if (!DepOpts.OutputFile.empty())      AttachDependencyFileGen(*PP, DepOpts); -  if (!DepOpts.GraphvizOutputFile.empty()) -    AttachDependencyGraphGen(*PP, DepOpts.GraphvizOutputFile, +  if (!DepOpts.DOTOutputFile.empty()) +    AttachDependencyGraphGen(*PP, DepOpts.DOTOutputFile,                               getHeaderSearchOpts().Sysroot); diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 1be75c88876..2cb5c604ca2 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1191,7 +1191,7 @@ static void ParseDependencyOutputArgs(DependencyOutputOptions &Opts,    Opts.ShowHeaderIncludes = Args.hasArg(OPT_H);    Opts.HeaderIncludeOutputFile = Args.getLastArgValue(OPT_header_include_file);    Opts.AddMissingHeaderDeps = Args.hasArg(OPT_MG); -  Opts.GraphvizOutputFile = Args.getLastArgValue(OPT_dependency_graphviz); +  Opts.DOTOutputFile = Args.getLastArgValue(OPT_dependency_dot);  }  static bool ParseDiagnosticArgs(DiagnosticOptions &Opts, ArgList &Args, diff --git a/clang/lib/Frontend/DependencyGraph.cpp b/clang/lib/Frontend/DependencyGraph.cpp index 6d4825f6b7e..eebaf0c8fe4 100644 --- a/clang/lib/Frontend/DependencyGraph.cpp +++ b/clang/lib/Frontend/DependencyGraph.cpp @@ -7,7 +7,8 @@  //  //===----------------------------------------------------------------------===//  // -// This code generates a header dependency graph in GraphViz format. +// This code generates a header dependency graph in DOT format, for use +// with, e.g., GraphViz.  //  //===----------------------------------------------------------------------===//  | 

