[cfe-commits] r41894 - in /cfe/trunk: clang.xcodeproj/project.pbxproj include/clang/AST/ASTContext.h
Chris Lattner
clattner at apple.com
Wed Sep 12 17:49:01 PDT 2007
> Add ASTContext::StringMap<char> to unique selector names.
> + //
> ===-------------------------------------------------------------------
> -===//
> + // Objective-C
> + //
> ===-------------------------------------------------------------------
> -===//
> +
> + /// getSelectorName - Return a uniqued character string for the
> selector.
> + char &getSelectorName(const char *NameStart, const char *NameEnd) {
> + return SelectorNames.GetOrCreateValue(NameStart,
> NameEnd).getValue();
> + }
Is this really what you want? It seems more useful to
return .getKeyData(), which is a pointer to the start of the name.
-Chris
More information about the cfe-commits
mailing list