Mercurial > hg > CbC > CbC_llvm
comparison clang/lib/Analysis/ReachableCode.cpp @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
136 } | 136 } |
137 | 137 |
138 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) { | 138 static SourceLocation getTopMostMacro(SourceLocation Loc, SourceManager &SM) { |
139 assert(Loc.isMacroID()); | 139 assert(Loc.isMacroID()); |
140 SourceLocation Last; | 140 SourceLocation Last; |
141 while (Loc.isMacroID()) { | 141 do { |
142 Last = Loc; | 142 Last = Loc; |
143 Loc = SM.getImmediateMacroCallerLoc(Loc); | 143 Loc = SM.getImmediateMacroCallerLoc(Loc); |
144 } | 144 } while (Loc.isMacroID()); |
145 return Last; | 145 return Last; |
146 } | 146 } |
147 | 147 |
148 /// Returns true if the statement is expanded from a configuration macro. | 148 /// Returns true if the statement is expanded from a configuration macro. |
149 static bool isExpandedFromConfigurationMacro(const Stmt *S, | 149 static bool isExpandedFromConfigurationMacro(const Stmt *S, |