]> granicus.if.org Git - clang/commit
Make BuiltinType::getName return a StringRef and introduce BuiltinType::getNameAsCString
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 May 2012 04:20:28 +0000 (04:20 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 5 May 2012 04:20:28 +0000 (04:20 +0000)
commit27a00970bf4ababdc115e54383e6252cc3276dfa
tree7cf3a0cd7845b5c8b909b047108e54f7a15b747f
parentab41fe914f63bb470dfa7e400876ada72f57a931
Make BuiltinType::getName return a StringRef and introduce BuiltinType::getNameAsCString
to get a const char* if necessary.

This avoids unnecessary conversions when we want to use the result of getName as
a StringRef.

Part of rdar://10796159

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156227 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/Sema/SemaCodeComplete.cpp