diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 08:56:51 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-10-31 08:56:51 +0000 |
commit | e10b0f236bc8487445bc99b8d14bd40666b1998d (patch) | |
tree | 3030724feb334878b30813e384df9f631f68f447 /Driver/PrintParserCallbacks.cpp | |
parent | 9881cf0f09aeada2894b203c854bd12b1babfd5d (diff) |
"One" line fix for -parse-noop failure, "id" and several other things
were being treated as type names for non-Objective-C files.
- Other lines are just because MinimalAction didn't have access to
the LangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintParserCallbacks.cpp')
-rw-r--r-- | Driver/PrintParserCallbacks.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Driver/PrintParserCallbacks.cpp b/Driver/PrintParserCallbacks.cpp index 94cc0e2237..43dbf341e9 100644 --- a/Driver/PrintParserCallbacks.cpp +++ b/Driver/PrintParserCallbacks.cpp @@ -22,7 +22,7 @@ namespace { class ParserPrintActions : public MinimalAction { public: - ParserPrintActions(IdentifierTable &IT) : MinimalAction(IT) {} + ParserPrintActions(Preprocessor &PP) : MinimalAction(PP) {} // Printing Functions which also must call MinimalAction @@ -568,6 +568,6 @@ namespace { }; } -MinimalAction *clang::CreatePrintParserActionsAction(IdentifierTable &IT) { - return new ParserPrintActions(IT); +MinimalAction *clang::CreatePrintParserActionsAction(Preprocessor &PP) { + return new ParserPrintActions(PP); } |