Avoid dubious IdentifierInfo::getNameStart() uses
These cases in particular were incurring an extra strlen() when we already knew the length. They appear to be leftovers from when the interfaces worked with C strings that have continued to compile due to the implicit StringRef ctor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210403 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclObjC.h 1 addition, 3 deletionsinclude/clang/AST/DeclObjC.h
- lib/CodeGen/CGObjCMac.cpp 24 additions, 32 deletionslib/CodeGen/CGObjCMac.cpp
- lib/Index/USRGeneration.cpp 1 addition, 1 deletionlib/Index/USRGeneration.cpp
- lib/Sema/SemaPseudoObject.cpp 2 additions, 4 deletionslib/Sema/SemaPseudoObject.cpp
- lib/Sema/SemaStmtAttr.cpp 1 addition, 1 deletionlib/Sema/SemaStmtAttr.cpp
- tools/libclang/CXString.cpp 5 additions, 1 deletiontools/libclang/CXString.cpp
Loading
Please register or sign in to comment