forked from OSchip/llvm-project
Implement "private extern" on function decls!
llvm-svn: 46464
This commit is contained in:
parent
909651a6ed
commit
1f7f6929f4
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue