aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/DependencyFile.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-02-10 11:47:33 +0100
committerJan Svoboda <jan_svoboda@apple.com>2021-02-10 12:20:51 +0100
commit17e5c99d5128f33158103c260714b6e02dbe35d5 (patch)
tree4a059d38600f5dd61ebc1bd63092d50ec2092e61 /clang/lib/Frontend/DependencyFile.cpp
parent2996a8d67553b9d469e01215b49bb1af17ad6d1e (diff)
downloadllvm-17e5c99d5128f33158103c260714b6e02dbe35d5.zip
llvm-17e5c99d5128f33158103c260714b6e02dbe35d5.tar.gz
llvm-17e5c99d5128f33158103c260714b6e02dbe35d5.tar.bz2
[clang][cli] Generate and round-trip DependencyOutput options
This patch implements generation of remaining dependency output options and tests it by performing parse-generate-parse round trip. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D96273
Diffstat (limited to 'clang/lib/Frontend/DependencyFile.cpp')
-rw-r--r--clang/lib/Frontend/DependencyFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DependencyFile.cpp b/clang/lib/Frontend/DependencyFile.cpp
index fe8ab71..8bdda0c 100644
--- a/clang/lib/Frontend/DependencyFile.cpp
+++ b/clang/lib/Frontend/DependencyFile.cpp
@@ -182,7 +182,7 @@ DependencyFileGenerator::DependencyFileGenerator(
IncludeModuleFiles(Opts.IncludeModuleFiles),
OutputFormat(Opts.OutputFormat), InputFileIndex(0) {
for (const auto &ExtraDep : Opts.ExtraDeps) {
- if (addDependency(ExtraDep))
+ if (addDependency(ExtraDep.first))
++InputFileIndex;
}
}