diff options
| author | Steve Naroff <snaroff@apple.com> | 2007-12-12 22:30:11 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2007-12-12 22:30:11 +0000 |
| commit | f44cb63859352415ea2a1b3a04b51131eacf1d1f (patch) | |
| tree | 1c49bf1d42ba7984dacfdbf165756fa1931fdc7d | |
| parent | 015982aa32139df864a710beec3d9964d8b05f38 (diff) | |
| download | bcm5719-llvm-f44cb63859352415ea2a1b3a04b51131eacf1d1f.tar.gz bcm5719-llvm-f44cb63859352415ea2a1b3a04b51131eacf1d1f.zip | |
Encode enumeral types.
llvm-svn: 44956
| -rw-r--r-- | clang/AST/ASTContext.cpp | 4 | ||||
| -rw-r--r-- | clang/clang.xcodeproj/project.pbxproj | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/clang/AST/ASTContext.cpp b/clang/AST/ASTContext.cpp index 82ff36245e1..f50929de935 100644 --- a/clang/AST/ASTContext.cpp +++ b/clang/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/clang.xcodeproj/project.pbxproj b/clang/clang.xcodeproj/project.pbxproj index 45276f149b9..0b2d9fabb03 100644 --- a/clang/clang.xcodeproj/project.pbxproj +++ b/clang/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 = ""; |

