mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-04 06:51:56 +00:00
Update for clang API change.
Patch by Косов Евгений. llvm-svn: 238775
This commit is contained in:
parent
c0f18a91ac
commit
d218565c04
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user