Skip to content

Commit 20491ba

Browse files
committed
[clang] Fix compilation error in pp-trace and remove IdentifierInfo forward declaration in SourceLocation
Signed-off-by: yronglin <[email protected]>
1 parent f61cc0b commit 20491ba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang-tools-extra/pp-trace/PPCallbacksTracker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ void PPCallbacksTracker::appendArgument(const char *Name, ModuleIdPath Value) {
547547
if (I)
548548
SS << ", ";
549549
SS << "{"
550-
<< "Name: " << Value[I].first->getName() << ", "
551-
<< "Loc: " << getSourceLocationString(PP, Value[I].second) << "}";
550+
<< "Name: " << Value[I].getIdentifierInfo()->getName() << ", "
551+
<< "Loc: " << getSourceLocationString(PP, Value[I].getLoc()) << "}";
552552
}
553553
SS << "]";
554554
appendArgument(Name, SS.str());

clang/include/clang/Basic/SourceLocation.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ template <typename T, typename Enable> struct FoldingSetTrait;
3131

3232
namespace clang {
3333

34-
class IdentifierInfo;
3534
class SourceManager;
3635

3736
/// An opaque identifier used by SourceManager which refers to a

0 commit comments

Comments
 (0)