From ee4c1d1298ffe3a25e91b391d6d43145bfbea2cd Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 26 Jul 2011 04:56:51 +0000 Subject: Migrate 'Instantiation' data and API bits of SLocEntry to 'Expansion' etc. With this I think essentially all of the SourceManager APIs are converted. Comments and random other bits of cleanup should be all thats left. llvm-svn: 136057 --- clang/lib/Serialization/ASTWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Serialization/ASTWriter.cpp') diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp index 6e3966e65ba..c94b96d18cb 100644 --- a/clang/lib/Serialization/ASTWriter.cpp +++ b/clang/lib/Serialization/ASTWriter.cpp @@ -1505,7 +1505,7 @@ void ASTWriter::WriteSourceManagerBlock(SourceManager &SourceMgr, } } else { // The source location entry is a macro expansion. - const SrcMgr::ExpansionInfo &Expansion = SLoc->getInstantiation(); + const SrcMgr::ExpansionInfo &Expansion = SLoc->getExpansion(); Record.push_back(Expansion.getSpellingLoc().getRawEncoding()); Record.push_back(Expansion.getExpansionLocStart().getRawEncoding()); Record.push_back(Expansion.getExpansionLocEnd().getRawEncoding()); -- cgit v1.2.3