Implement "private extern" on function decls!

llvm-svn: 46464
This commit is contained in:
Steve Naroff 2008-01-28 21:57:15 +00:00
parent 909651a6ed
commit 1f7f6929f4
2 changed files with 2 additions and 1 deletions

View File

@ -678,6 +678,7 @@ Sema::ActOnDeclarator(Scope *S, Declarator &D, DeclTy *lastDecl) {
case DeclSpec::SCS_unspecified: SC = FunctionDecl::None; break;
case DeclSpec::SCS_extern: SC = FunctionDecl::Extern; break;
case DeclSpec::SCS_static: SC = FunctionDecl::Static; break;
case DeclSpec::SCS_private_extern: SC = FunctionDecl::PrivateExtern;break;
}
FunctionDecl *NewFD = new FunctionDecl(D.getIdentifierLoc(), II, R, SC,

View File

@ -425,7 +425,7 @@ protected:
class FunctionDecl : public ValueDecl {
public:
enum StorageClass {
None, Extern, Static
None, Extern, Static, PrivateExtern
};
FunctionDecl(SourceLocation L, IdentifierInfo *Id, QualType T,
StorageClass S = None, bool isInline = false,