summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-17 22:39:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-17 22:39:59 +0000
commit56df97761d214030881efbf7c32cf2cce7f9ea8e (patch)
tree2fdbf26598f4dea0136644b5791ab69f5b0a1eb5 /clang/lib/AST/ASTContext.cpp
parentf346a3dd680d4b72eb6f20a7c05df09202446b80 (diff)
downloadbcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.tar.gz
bcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.zip
StringRef'ication of lots stuff, patch by Peter Davies!
llvm-svn: 111314
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 1e437fdabeb..b549415a1b4 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -3186,7 +3186,7 @@ bool ASTContext::BlockRequiresCopying(QualType Ty) {
return false;
}
-QualType ASTContext::BuildByRefType(const char *DeclName, QualType Ty) {
+QualType ASTContext::BuildByRefType(llvm::StringRef DeclName, QualType Ty) {
// type = struct __Block_byref_1_X {
// void *__isa;
// struct __Block_byref_1_X *__forwarding;
@@ -3219,7 +3219,7 @@ QualType ASTContext::BuildByRefType(const char *DeclName, QualType Ty) {
Ty
};
- const char *FieldNames[] = {
+ llvm::StringRef FieldNames[] = {
"__isa",
"__forwarding",
"__flags",
@@ -3296,7 +3296,7 @@ QualType ASTContext::getBlockParmType(
const ValueDecl *D = BDRE->getDecl();
FieldName = D->getIdentifier();
if (BDRE->isByRef())
- FieldType = BuildByRefType(D->getNameAsCString(), FieldType);
+ FieldType = BuildByRefType(D->getName(), FieldType);
} else {
// Padding.
assert(isa<ConstantArrayType>(FieldType) &&
OpenPOWER on IntegriCloud