aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceLocation.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-03 08:24:13 +0000
committerChris Lattner <sabre@nondot.org>2008-02-03 08:24:13 +0000
commitf8484542bbd9f3445b22fe8d240a1eac790cd8ca (patch)
treec2f0a79424cc521c3e0496f12c739c937bbf4263 /include/clang/Basic/SourceLocation.h
parent795aaed9241c6fb77e40c40b73383ac1317ac536 (diff)
the macro start and macro end bits in source location are dead, remove them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r--include/clang/Basic/SourceLocation.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h
index d153552dfc..4cffb350b9 100644
--- a/include/clang/Basic/SourceLocation.h
+++ b/include/clang/Basic/SourceLocation.h
@@ -43,10 +43,8 @@ public:
// MacroID Layout:
// bit 31: 1 -> MacroID, 0 -> FileID (invalid for MacroID)
- // bit 30: 1 -> Start of macro expansion marker.
- MacroStartOfExpansionBit = 30,
- // bit 29: 1 -> End of macro expansion marker.
- MacroEndOfExpansionBit = 29,
+ // bit 29,30: unused.
+
// bits 28...9 -> MacroID number.
MacroIDBits = 20,
// bits 8...0 -> Macro Physical offset
@@ -92,8 +90,7 @@ public:
return -Val < (1 << (MacroPhysOffsBits-1));
}
- static SourceLocation getMacroLoc(unsigned MacroID, int PhysOffs,
- bool isExpansionStart, bool isExpansionEnd){
+ static SourceLocation getMacroLoc(unsigned MacroID, int PhysOffs){
assert(MacroID < (1 << MacroIDBits) && "Too many macros!");
assert(isValidMacroPhysOffs(PhysOffs) && "Physoffs too large!");
@@ -102,8 +99,6 @@ public:
SourceLocation L;
L.ID = (1 << 31) |
- (isExpansionStart << MacroStartOfExpansionBit) |
- (isExpansionEnd << MacroEndOfExpansionBit) |
(MacroID << MacroPhysOffsBits) |
PhysOffs;
return L;