Update for clang API change.

Patch by Косов Евгений.

llvm-svn: 238775
This commit is contained in:
Rafael Espindola 2015-06-01 20:00:20 +00:00
parent c0f18a91ac
commit d218565c04
2 changed files with 8 additions and 9 deletions

View File

@ -166,8 +166,7 @@ void PPCallbacksTracker::moduleImport(clang::SourceLocation ImportLoc,
void PPCallbacksTracker::EndOfMainFile() { beginCallback("EndOfMainFile"); }
// Callback invoked when a #ident or #sccs directive is read.
void PPCallbacksTracker::Ident(clang::SourceLocation Loc,
const std::string &Str) {
void PPCallbacksTracker::Ident(clang::SourceLocation Loc, llvm::StringRef Str) {
beginCallback("Ident");
appendArgument("Loc", Loc);
appendArgument("Str", Str);
@ -185,7 +184,7 @@ PPCallbacksTracker::PragmaDirective(clang::SourceLocation Loc,
// Callback invoked when a #pragma comment directive is read.
void PPCallbacksTracker::PragmaComment(clang::SourceLocation Loc,
const clang::IdentifierInfo *Kind,
const std::string &Str) {
llvm::StringRef Str) {
beginCallback("PragmaComment");
appendArgument("Loc", Loc);
appendArgument("Kind", Kind);
@ -195,8 +194,8 @@ void PPCallbacksTracker::PragmaComment(clang::SourceLocation Loc,
// Callback invoked when a #pragma detect_mismatch directive is
// read.
void PPCallbacksTracker::PragmaDetectMismatch(clang::SourceLocation Loc,
const std::string &Name,
const std::string &Value) {
llvm::StringRef Name,
llvm::StringRef Value) {
beginCallback("PragmaDetectMismatch");
appendArgument("Loc", Loc);
appendArgument("Name", Name);

View File

@ -100,14 +100,14 @@ public:
void moduleImport(clang::SourceLocation ImportLoc, clang::ModuleIdPath Path,
const clang::Module *Imported) override;
void EndOfMainFile() override;
void Ident(clang::SourceLocation Loc, const std::string &str) override;
void Ident(clang::SourceLocation Loc, llvm::StringRef str) override;
void PragmaDirective(clang::SourceLocation Loc,
clang::PragmaIntroducerKind Introducer) override;
void PragmaComment(clang::SourceLocation Loc,
const clang::IdentifierInfo *Kind,
const std::string &Str) override;
void PragmaDetectMismatch(clang::SourceLocation Loc, const std::string &Name,
const std::string &Value) override;
llvm::StringRef Str) override;
void PragmaDetectMismatch(clang::SourceLocation Loc, llvm::StringRef Name,
llvm::StringRef Value) override;
void PragmaDebug(clang::SourceLocation Loc,
llvm::StringRef DebugType) override;
void PragmaMessage(clang::SourceLocation Loc, llvm::StringRef Namespace,