aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-05-22 08:38:27 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-05-22 08:38:27 +0000
commit3d8216a9d325e095414302bda7a0af9549f9c40b (patch)
tree7c5ad69a418e7a47e5264ca81a1c0dffa5095836 /lib/Frontend/PCHWriter.cpp
parent6857d9d43b082ae825c29cca80f2f6b7c3aa4e5f (diff)
Pull EmitRecord() out of loop. It should be called only once.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r--lib/Frontend/PCHWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp
index 5edf03c6ff..6769d8c9c2 100644
--- a/lib/Frontend/PCHWriter.cpp
+++ b/lib/Frontend/PCHWriter.cpp
@@ -758,8 +758,8 @@ void PCHWriter::WriteSourceManagerBlock(SourceManager &SourceMgr,
Record.push_back((unsigned)LE->FileKind);
Record.push_back(LE->IncludeOffset);
}
- Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
}
+ Stream.EmitRecord(pch::SM_LINE_TABLE, Record);
}
// Write out entries for all of the header files we know about.