diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-09 23:52:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-09 23:52:16 +0000 |
commit | b7489d8129136437953d412e2a6cf0ef87f4a461 (patch) | |
tree | d9ac35c154357f87ae8134c4fceb424d8475dd83 /Basic/SourceManager.cpp | |
parent | 360300ca2ee298d585d29baf006519507d968812 (diff) |
change source location to have two bits for macros, tracking
whether the location is the start and/or end of an expansion.
These are currently not set or used by anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r-- | Basic/SourceManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp index 0482d4c705..74e88c18dc 100644 --- a/Basic/SourceManager.cpp +++ b/Basic/SourceManager.cpp @@ -193,12 +193,12 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation PhysLoc, int PhysDelta = PhysLoc.getRawFilePos() - LastOne.getPhysicalLoc().getRawFilePos(); if (SourceLocation::isValidMacroPhysOffs(PhysDelta)) - return SourceLocation::getMacroLoc(i, PhysDelta, 0); + return SourceLocation::getMacroLoc(i, PhysDelta, false, false); } MacroIDs.push_back(MacroIDInfo::get(InstantLoc, PhysLoc)); - return SourceLocation::getMacroLoc(MacroIDs.size()-1, 0, 0); + return SourceLocation::getMacroLoc(MacroIDs.size()-1, 0, false, false); } /// getBufferData - Return a pointer to the start and end of the character |