diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-07 21:54:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-07-07 21:54:45 +0000 |
commit | 7a759606d93975866051f67104ae58446e55f404 (patch) | |
tree | 7cea5f3d5011bf43b5ba37f3163aa33b3e48ccb1 /lib/Parse/ParseExpr.cpp | |
parent | 14ef3191a75b8bcdab391e6ffa6367b731c2ce67 (diff) |
Move SourceManager::isAt[Start/End]OfMacroInstantiation functions to the Lexer, since they depend on it now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134644 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r-- | lib/Parse/ParseExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index f8652e0074..7df43d7874 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -310,8 +310,7 @@ Parser::ParseRHSOfBinaryExpression(ExprResult LHS, prec::Level MinPrec) { SourceLocation FILoc = Tok.getLocation(); const char *FIText = ": "; const SourceManager &SM = PP.getSourceManager(); - if (FILoc.isFileID() || - SM.isAtStartOfMacroInstantiation(FILoc, getLang())) { + if (FILoc.isFileID() || PP.isAtStartOfMacroInstantiation(FILoc)) { FILoc = SM.getInstantiationLoc(FILoc); bool IsInvalid = false; const char *SourcePtr = |