Try to appease MSVC

llvm-svn: 98875
This commit is contained in:
Douglas Gregor 2010-03-18 21:25:12 +00:00
parent 361ffd947c
commit 5810ead358
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@ int BAR STILL_NOTHING;
// CHECK: Identifier: "honk" [2:31 - 2:35] preprocessing directive= // CHECK: Identifier: "honk" [2:31 - 2:35] preprocessing directive=
// CHECK: Punctuation: "," [2:35 - 2:36] preprocessing directive= // CHECK: Punctuation: "," [2:35 - 2:36] preprocessing directive=
// CHECK: Identifier: "warble" [2:36 - 2:42] preprocessing directive= // CHECK: Identifier: "warble" [2:36 - 2:42] preprocessing directive=
// CHECK: Punctuation: ")" [2:42 - 2:43] preprocessing directive= // CHECK: Punctuation: ")" [2:42 - 2:43] preprocesggsing directive=
// CHECK: Punctuation: "#" [3:1 - 3:2] preprocessing directive= // CHECK: Punctuation: "#" [3:1 - 3:2] preprocessing directive=
// CHECK: Identifier: "define" [3:2 - 3:8] preprocessing directive= // CHECK: Identifier: "define" [3:2 - 3:8] preprocessing directive=
// CHECK: Identifier: "BAR" [3:9 - 3:12] macro definition=BAR // CHECK: Identifier: "BAR" [3:9 - 3:12] macro definition=BAR

View File

@ -2066,22 +2066,22 @@ namespace {
public: public:
explicit ComparePreprocessedEntityLocation(SourceManager &SM) : SM(SM) { } explicit ComparePreprocessedEntityLocation(SourceManager &SM) : SM(SM) { }
bool operator()(const PreprocessedEntity *Entity, SourceLocation Loc) { bool operator()(const PreprocessedEntity *Entity, SourceLocation Loc) const{
return SM.isBeforeInTranslationUnit(Entity->getSourceRange().getEnd(), return SM.isBeforeInTranslationUnit(Entity->getSourceRange().getEnd(),
Loc); Loc);
} }
bool operator()(SourceLocation Loc, const PreprocessedEntity *Entity) { bool operator()(SourceLocation Loc, const PreprocessedEntity *Entity) const{
return SM.isBeforeInTranslationUnit(Loc, return SM.isBeforeInTranslationUnit(Loc,
Entity->getSourceRange().getBegin()); Entity->getSourceRange().getBegin());
} }
bool operator()(const PreprocessedEntity *Entity, SourceRange R) { bool operator()(const PreprocessedEntity *Entity, SourceRange R) const {
return SM.isBeforeInTranslationUnit(Entity->getSourceRange().getEnd(), return SM.isBeforeInTranslationUnit(Entity->getSourceRange().getEnd(),
R.getBegin()); R.getBegin());
} }
bool operator()(SourceRange R, const PreprocessedEntity *Entity) { bool operator()(SourceRange R, const PreprocessedEntity *Entity) const {
return SM.isBeforeInTranslationUnit(R.getEnd(), return SM.isBeforeInTranslationUnit(R.getEnd(),
Entity->getSourceRange().getBegin()); Entity->getSourceRange().getBegin());
} }