[cfe-commits] r64258 - in /cfe/trunk: Driver/ASTConsumers.cpp lib/AST/StmtPrinter.cpp
Mike Stump
mrs at apple.com
Tue Feb 10 15:49:50 PST 2009
Author: mrs
Date: Tue Feb 10 17:49:50 2009
New Revision: 64258
URL: http://llvm.org/viewvc/llvm-project?rev=64258&view=rev
Log:
Add private extern to pretty printer(s).
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
cfe/trunk/lib/AST/StmtPrinter.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=64258&r1=64257&r2=64258&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Tue Feb 10 17:49:50 2009
@@ -176,11 +176,12 @@
if (VarDecl *V = dyn_cast<VarDecl>(ND)) {
switch (V->getStorageClass()) {
default: assert(0 && "Unknown storage class!");
- case VarDecl::None: break;
- case VarDecl::Extern: Out << "extern "; break;
- case VarDecl::Static: Out << "static "; break;
- case VarDecl::Auto: Out << "auto "; break;
- case VarDecl::Register: Out << "register "; break;
+ case VarDecl::None: break;
+ case VarDecl::Auto: Out << "auto "; break;
+ case VarDecl::Register: Out << "register "; break;
+ case VarDecl::Extern: Out << "extern "; break;
+ case VarDecl::Static: Out << "static "; break;
+ case VarDecl::PrivateExtern: Out << "static "; break;
}
}
std::string Name = ND->getNameAsString();
Modified: cfe/trunk/lib/AST/StmtPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/StmtPrinter.cpp?rev=64258&r1=64257&r2=64258&view=diff
==============================================================================
--- cfe/trunk/lib/AST/StmtPrinter.cpp (original)
+++ cfe/trunk/lib/AST/StmtPrinter.cpp Tue Feb 10 17:49:50 2009
@@ -119,11 +119,12 @@
if (VarDecl *V = dyn_cast<VarDecl>(VD)) {
switch (V->getStorageClass()) {
default: assert(0 && "Unknown storage class!");
- case VarDecl::None: break;
- case VarDecl::Extern: OS << "extern "; break;
- case VarDecl::Static: OS << "static "; break;
- case VarDecl::Auto: OS << "auto "; break;
- case VarDecl::Register: OS << "register "; break;
+ case VarDecl::None: break;
+ case VarDecl::Extern: OS << "extern "; break;
+ case VarDecl::Static: OS << "static "; break;
+ case VarDecl::Auto: OS << "auto "; break;
+ case VarDecl::Register: OS << "register "; break;
+ case VarDecl::PrivateExtern: OS << "__private_extern "; break;
}
}
More information about the cfe-commits
mailing list