Pass StringRef-s instead of copying strings...

This commit is contained in:
Axel Naumann 2014-09-12 13:53:07 +02:00 committed by sftnight
parent b714047cbb
commit b7a590c40e
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@ namespace cling {
// AutoloadingStateInfo m_State;
void report(clang::SourceLocation l, std::string name,std::string header);
void report(clang::SourceLocation l, llvm::StringRef name,
llvm::StringRef header);
};
} // end namespace cling

View File

@ -29,7 +29,8 @@ using namespace clang;
namespace cling {
void AutoloadCallback::report(clang::SourceLocation l,std::string name,std::string header) {
void AutoloadCallback::report(clang::SourceLocation l, llvm::StringRef name,
llvm::StringRef header) {
Sema& sema= m_Interpreter->getSema();
unsigned id