Author: dgregor
Date: Tue Dec 16 19:46:43 2008
New Revision: 61115

URL: http://llvm.org/viewvc/llvm-project?rev=61115&view=rev
Log:
Fix PrintParserCallbacks for the new ActOnLinkageSpec actions

Modified:
    cfe/trunk/Driver/PrintParserCallbacks.cpp

Modified: cfe/trunk/Driver/PrintParserCallbacks.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/PrintParserCallbacks.cpp?rev=61115&r1=61114&r2=61115&view=diff

==============================================================================
--- cfe/trunk/Driver/PrintParserCallbacks.cpp (original)
+++ cfe/trunk/Driver/PrintParserCallbacks.cpp Tue Dec 16 19:46:43 2008
@@ -156,14 +156,27 @@
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
     }
-
+    
+    /// ActOnLinkageSpec - Parsed a C++ linkage-specification that
+    /// contained braces. Lang/StrSize contains the language string that
+    /// was parsed at location Loc. Decls/NumDecls provides the
+    /// declarations parsed inside the linkage specification.
     virtual DeclTy *ActOnLinkageSpec(SourceLocation Loc, SourceLocation LBrace,
                                      SourceLocation RBrace, const char *Lang,
-                                     unsigned StrSize, DeclTy *D) {
+                                     unsigned StrSize, 
+                                     DeclTy **Decls, unsigned NumDecls) {
       llvm::cout << __FUNCTION__ << "\n";
       return 0;
     }
-  
+    
+    /// ActOnLinkageSpec - Parsed a C++ linkage-specification without
+    /// braces. Lang/StrSize contains the language string that was
+    /// parsed at location Loc. D is the declaration parsed.
+    virtual DeclTy *ActOnLinkageSpec(SourceLocation Loc, const char *Lang,
+                                     unsigned StrSize, DeclTy *D) {
+      return 0;
+    }
+    
     
//===--------------------------------------------------------------------===//
     // Type Parsing Callbacks.
     
//===--------------------------------------------------------------------===//


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to