Skip to content

Commit 7100860

Browse files
committed
Delete a dead function at sabre's request.
llvm-svn: 103705
1 parent 89e5635 commit 7100860

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

clang/lib/Sema/Sema.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ void FunctionScopeInfo::Clear(unsigned NumErrors) {
3838

3939
BlockScopeInfo::~BlockScopeInfo() { }
4040

41-
static inline RecordDecl *CreateStructDecl(ASTContext &C, const char *Name) {
42-
if (C.getLangOptions().CPlusPlus)
43-
return CXXRecordDecl::Create(C, TTK_Struct,
44-
C.getTranslationUnitDecl(),
45-
SourceLocation(), &C.Idents.get(Name));
46-
47-
return RecordDecl::Create(C, TTK_Struct,
48-
C.getTranslationUnitDecl(),
49-
SourceLocation(), &C.Idents.get(Name));
50-
}
51-
5241
void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
5342
TUScope = S;
5443
PushDeclContext(S, Context.getTranslationUnitDecl());

0 commit comments

Comments
 (0)