summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-11-05 00:09:43 +0000
committerTed Kremenek <kremenek@apple.com>2011-11-05 00:09:43 +0000
commitfce371acb43ae43eceb2e3de632e4e75b7ea0112 (patch)
tree57a38aa61af52c9d7890225a16a64308ab680435 /clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
parentd5145b36efdaa8882ba76d0b7d194db1dc0edc3e (diff)
downloadbcm5719-llvm-fce371acb43ae43eceb2e3de632e4e75b7ea0112.tar.gz
bcm5719-llvm-fce371acb43ae43eceb2e3de632e4e75b7ea0112.zip
Also include file modification time and size in output of SerializedDiagnosticPrinter.
llvm-svn: 143757
Diffstat (limited to 'clang/lib/Frontend/SerializedDiagnosticPrinter.cpp')
-rw-r--r--clang/lib/Frontend/SerializedDiagnosticPrinter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
index 4a7c8cf60cf..fba085eeaa9 100644
--- a/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
+++ b/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
@@ -245,7 +245,9 @@ void SDiagsWriter::EmitBlockInfoBlock() {
Abbrev));
Abbrev = new BitCodeAbbrev();
- Abbrev->Add(BitCodeAbbrevOp(RECORD_CATEGORY));
+ Abbrev->Add(BitCodeAbbrevOp(RECORD_FILENAME));
+ Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 64)); // Size.
+ Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 64)); // Modifcation time.
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // File name text.
Abbrevs.set(RECORD_FILENAME, Stream.EmitBlockInfoAbbrev(BLOCK_STRINGS,
@@ -338,6 +340,8 @@ void SDiagsWriter::EmitCategoriesAndFileNames() {
StringRef Name = FE->getName();
Record.clear();
+ Record.push_back(FE->getSize());
+ Record.push_back(FE->getModificationTime());
Record.push_back(Name.size());
Stream.EmitRecordWithBlob(Abbrevs.get(RECORD_FILENAME), Record, Name);
}
OpenPOWER on IntegriCloud