diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 16:49:02 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2011-07-25 16:49:02 +0000 |
| commit | 35f5320d8e3bd080bd6316ef13716adf011d89e9 (patch) | |
| tree | a2d1d3609f6570fff401687602ba90163047ef8a /clang/lib/Rewrite/RewriteMacros.cpp | |
| parent | 163d675e727086abf65c91f6c898e672ca72ebfe (diff) | |
| download | bcm5719-llvm-35f5320d8e3bd080bd6316ef13716adf011d89e9.tar.gz bcm5719-llvm-35f5320d8e3bd080bd6316ef13716adf011d89e9.zip | |
Mechanically rename SourceManager::getInstantiationLoc and
FullSourceLoc::getInstantiationLoc to ...::getExpansionLoc. This is part
of the API and documentation update from 'instantiation' as the term for
macros to 'expansion'.
llvm-svn: 135914
Diffstat (limited to 'clang/lib/Rewrite/RewriteMacros.cpp')
| -rw-r--r-- | clang/lib/Rewrite/RewriteMacros.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Rewrite/RewriteMacros.cpp b/clang/lib/Rewrite/RewriteMacros.cpp index d1dda91ad05..d56910037c6 100644 --- a/clang/lib/Rewrite/RewriteMacros.cpp +++ b/clang/lib/Rewrite/RewriteMacros.cpp @@ -112,7 +112,7 @@ void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) { // that aren't in the preprocessed view, we have macros that expand to no // tokens, or macro arguments etc. while (RawTok.isNot(tok::eof) || PPTok.isNot(tok::eof)) { - SourceLocation PPLoc = SM.getInstantiationLoc(PPTok.getLocation()); + SourceLocation PPLoc = SM.getExpansionLoc(PPTok.getLocation()); // If PPTok is from a different source file, ignore it. if (!SM.isFromMainFile(PPLoc)) { @@ -197,7 +197,7 @@ void clang::RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS) { while (PPOffs < RawOffs) { Expansion += ' ' + PP.getSpelling(PPTok); PP.Lex(PPTok); - PPLoc = SM.getInstantiationLoc(PPTok.getLocation()); + PPLoc = SM.getExpansionLoc(PPTok.getLocation()); PPOffs = SM.getFileOffset(PPLoc); } Expansion += ' '; |

