aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/HeaderIncludeGen.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/HeaderIncludeGen.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/HeaderIncludeGen.cpp')
-rw-r--r--clang/lib/Frontend/HeaderIncludeGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/HeaderIncludeGen.cpp b/clang/lib/Frontend/HeaderIncludeGen.cpp
index 97fac8a..cc2989a 100644
--- a/clang/lib/Frontend/HeaderIncludeGen.cpp
+++ b/clang/lib/Frontend/HeaderIncludeGen.cpp
@@ -119,7 +119,7 @@ void clang::AttachHeaderIncludeGen(Preprocessor &PP,
// as sanitizer blacklists. It's only important for cl.exe compatibility,
// the GNU way to generate rules is -M / -MM / -MD / -MMD.
for (const auto &Header : DepOpts.ExtraDeps)
- PrintHeaderInfo(OutputFile, Header, ShowDepth, 2, MSStyle);
+ PrintHeaderInfo(OutputFile, Header.first, ShowDepth, 2, MSStyle);
PP.addPPCallbacks(std::make_unique<HeaderIncludesCallback>(
&PP, ShowAllHeaders, OutputFile, DepOpts, OwnsOutputFile, ShowDepth,
MSStyle));