diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-02-03 22:14:53 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-02-03 22:14:53 +0000 |
commit | 0cdb86bd382c26c6543540961fc2c3a54d6bf1f8 (patch) | |
tree | ef703218b476c148833c91315948f90179266497 /clang/lib/AST/ASTContext.cpp | |
parent | e551051a58f2188ccafd28ad47b5092875cc72e8 (diff) | |
download | bcm5719-llvm-0cdb86bd382c26c6543540961fc2c3a54d6bf1f8.tar.gz bcm5719-llvm-0cdb86bd382c26c6543540961fc2c3a54d6bf1f8.zip |
Revert r259624 - Make CF constant string decl visible to name lookup to fix module errors.
This breaks some internal bots in stage2: clang seg fault.
Looking with Ben to see what is going on.
llvm-svn: 259715
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index fc5ff8668e9..02b3e51d1de 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -4868,11 +4868,10 @@ int ASTContext::getIntegerTypeOrder(QualType LHS, QualType RHS) const { return 1; } -TagDecl *ASTContext::getCFConstantStringDecl() const { +// getCFConstantStringType - Return the type used for constant CFStrings. +QualType ASTContext::getCFConstantStringType() const { if (!CFConstantStringTypeDecl) { - // This type is designed to be compatible with NSConstantString, but cannot - // use the same name, since NSConstantString is an interface. - CFConstantStringTypeDecl = buildImplicitRecord("__NSConstantString"); + CFConstantStringTypeDecl = buildImplicitRecord("NSConstantString"); CFConstantStringTypeDecl->startDefinition(); QualType FieldTypes[4]; @@ -4902,12 +4901,7 @@ TagDecl *ASTContext::getCFConstantStringDecl() const { CFConstantStringTypeDecl->completeDefinition(); } - return CFConstantStringTypeDecl; -} - -// getCFConstantStringType - Return the type used for constant CFStrings. -QualType ASTContext::getCFConstantStringType() const { - return getTagDeclType(getCFConstantStringDecl()); + return getTagDeclType(CFConstantStringTypeDecl); } QualType ASTContext::getObjCSuperType() const { |