summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PTHLexer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-01-17 08:06:50 +0000
committerChris Lattner <sabre@nondot.org>2009-01-17 08:06:50 +0000
commitab1d4b8abd54eb55ef8e9112abc8f012546b64b6 (patch)
tree5b9605be8970ece3332eb8596ce182ba30cbefb3 /clang/lib/Lex/PTHLexer.cpp
parent3f634fe364dc576638b2c06e0ab803b51d9c069a (diff)
downloadbcm5719-llvm-ab1d4b8abd54eb55ef8e9112abc8f012546b64b6.tar.gz
bcm5719-llvm-ab1d4b8abd54eb55ef8e9112abc8f012546b64b6.zip
simplify PTHManager::CreateLexer
llvm-svn: 62424
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r--clang/lib/Lex/PTHLexer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index fd7c367c70a..12f8330b20b 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -668,7 +668,8 @@ IdentifierInfo* PTHManager::get(const char *NameStart, const char *NameEnd) {
}
-PTHLexer* PTHManager::CreateLexer(FileID FID, const FileEntry* FE) {
+PTHLexer *PTHManager::CreateLexer(FileID FID) {
+ const FileEntry *FE = PP->getSourceManager().getFileEntryForID(FID);
if (!FE)
return 0;
OpenPOWER on IntegriCloud