aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-12-12 22:30:11 +0000
committerSteve Naroff <snaroff@apple.com>2007-12-12 22:30:11 +0000
commit5e71124dabe8017f17ce8996e4161a202694e3e6 (patch)
treea901a83d4c1891d348410e45d5b119b754a6f9e3
parent21584fe015705ca1ea2d852b7ad188c4baf9ffcf (diff)
Encode enumeral types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44956 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/ASTContext.cpp4
-rw-r--r--clang.xcodeproj/project.pbxproj1
2 files changed, 4 insertions, 1 deletions
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp
index 82ff36245e..f50929de93 100644
--- a/AST/ASTContext.cpp
+++ b/AST/ASTContext.cpp
@@ -1071,8 +1071,10 @@ void ASTContext::getObjcEncodingForType(QualType T, std::string& S) const
getObjcEncodingForType(field->getType(), S);
}
S += '}';
+ } else if (T->isEnumeralType()) {
+ S += 'i';
} else
- assert(0 && "@encode for type not implemented!");
+ assert(0 && "@encode for type not implemented!");
}
void ASTContext::getObjcEncodingForTypeQualifier(Decl::ObjcDeclQualifier QT,
diff --git a/clang.xcodeproj/project.pbxproj b/clang.xcodeproj/project.pbxproj
index 45276f149b..0b2d9fabb0 100644
--- a/clang.xcodeproj/project.pbxproj
+++ b/clang.xcodeproj/project.pbxproj
@@ -775,6 +775,7 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */;
+ compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1;
mainGroup = 08FB7794FE84155DC02AAC07 /* clang */;
projectDirPath = "";