aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-10-13 23:28:53 +0000
committerDevang Patel <dpatel@apple.com>2009-10-13 23:28:53 +0000
commit1619dc3b9ee2573c481591764c2d26d5ff16b483 (patch)
tree7c8a15e6008c918bc92a590e438862b1190f0b86 /include/llvm
parent228ebd0f4cf9207d32d61ef4b11b81736895dc09 (diff)
downloadexternal_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.tar.gz
external_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.tar.bz2
external_llvm-1619dc3b9ee2573c481591764c2d26d5ff16b483.zip
s/DebugLoc.CompileUnit/DebugLoc.Scope/g
s/DebugLoc.InlinedLoc/DebugLoc.InlinedAtLoc/g git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/DebugLoc.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/include/llvm/Support/DebugLoc.h b/include/llvm/Support/DebugLoc.h
index 30590c7c1d..55c3c4ffbd 100644
--- a/include/llvm/Support/DebugLoc.h
+++ b/include/llvm/Support/DebugLoc.h
@@ -24,19 +24,19 @@ namespace llvm {
/// DebugLocTuple - Debug location tuple of filename id, line and column.
///
struct DebugLocTuple {
- MDNode *CompileUnit;
- MDNode *InlinedLoc;
+ MDNode *Scope;
+ MDNode *InlinedAtLoc;
unsigned Line, Col;
DebugLocTuple()
- : CompileUnit(0), InlinedLoc(0), Line(~0U), Col(~0U) {};
+ : Scope(0), InlinedAtLoc(0), Line(~0U), Col(~0U) {};
DebugLocTuple(MDNode *n, MDNode *i, unsigned l, unsigned c)
- : CompileUnit(n), InlinedLoc(i), Line(l), Col(c) {};
+ : Scope(n), InlinedAtLoc(i), Line(l), Col(c) {};
bool operator==(const DebugLocTuple &DLT) const {
- return CompileUnit == DLT.CompileUnit &&
- InlinedLoc == DLT.InlinedLoc &&
+ return Scope == DLT.Scope &&
+ InlinedAtLoc == DLT.InlinedAtLoc &&
Line == DLT.Line && Col == DLT.Col;
}
bool operator!=(const DebugLocTuple &DLT) const {
@@ -74,16 +74,16 @@ namespace llvm {
return DebugLocTuple((MDNode*)~1U, (MDNode*)~1U, ~1U, ~1U);
}
static unsigned getHashValue(const DebugLocTuple &Val) {
- return DenseMapInfo<MDNode*>::getHashValue(Val.CompileUnit) ^
- DenseMapInfo<MDNode*>::getHashValue(Val.InlinedLoc) ^
+ return DenseMapInfo<MDNode*>::getHashValue(Val.Scope) ^
+ DenseMapInfo<MDNode*>::getHashValue(Val.InlinedAtLoc) ^
DenseMapInfo<unsigned>::getHashValue(Val.Line) ^
DenseMapInfo<unsigned>::getHashValue(Val.Col);
}
static bool isEqual(const DebugLocTuple &LHS, const DebugLocTuple &RHS) {
- return LHS.CompileUnit == RHS.CompileUnit &&
- LHS.InlinedLoc == RHS.InlinedLoc &&
- LHS.Line == RHS.Line &&
- LHS.Col == RHS.Col;
+ return LHS.Scope == RHS.Scope &&
+ LHS.InlinedAtLoc == RHS.InlinedAtLoc &&
+ LHS.Line == RHS.Line &&
+ LHS.Col == RHS.Col;
}
static bool isPod() { return true; }