File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 675
675
08FB7793FE84155DC02AAC07 /* Project object */ = {
676
676
isa = PBXProject;
677
677
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "clang" */;
678
- compatibilityVersion = "Xcode 2.4";
679
678
hasScannedForEncodings = 1;
680
679
mainGroup = 08FB7794FE84155DC02AAC07 /* clang */;
681
680
projectDirPath = "";
Original file line number Diff line number Diff line change 19
19
#include " clang/AST/RecordLayout.h"
20
20
#include " clang/AST/Type.h"
21
21
#include " llvm/ADT/DenseMap.h"
22
+ #include " llvm/ADT/StringMap.h"
22
23
#include < vector>
23
24
24
25
namespace clang {
@@ -37,6 +38,7 @@ class ASTContext {
37
38
llvm::FoldingSet<FunctionTypeProto> FunctionTypeProtos;
38
39
llvm::DenseMap<const RecordDecl*, const RecordLayout*> RecordLayoutInfo;
39
40
RecordDecl *CFConstantStringTypeDecl;
41
+ llvm::StringMap<char > SelectorNames;
40
42
public:
41
43
TargetInfo &Target;
42
44
IdentifierTable &Idents;
@@ -174,6 +176,16 @@ class ASTContext {
174
176
// / 'typeSize' is a real floating point or complex type.
175
177
QualType getFloatingTypeOfSizeWithinDomain (QualType typeSize,
176
178
QualType typeDomain) const ;
179
+
180
+ // ===--------------------------------------------------------------------===//
181
+ // Objective-C
182
+ // ===--------------------------------------------------------------------===//
183
+
184
+ // / getSelectorName - Return a uniqued character string for the selector.
185
+ char &getSelectorName (const char *NameStart, const char *NameEnd) {
186
+ return SelectorNames.GetOrCreateValue (NameStart, NameEnd).getValue ();
187
+ }
188
+
177
189
private:
178
190
ASTContext (const ASTContext&); // DO NOT IMPLEMENT
179
191
void operator =(const ASTContext&); // DO NOT IMPLEMENT
You can’t perform that action at this time.
0 commit comments