summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APSInt.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-01-19 04:31:12 +0000
committerTed Kremenek <kremenek@apple.com>2008-01-19 04:31:12 +0000
commit4048a082847cea72431aa8235f54941ed064913b (patch)
tree7cf1369eea2dca24358d86460fd9255df365aad3 /include/llvm/ADT/APSInt.h
parente420debd26300cbeb6af2722e3342132b2be1b3c (diff)
downloadllvm-4048a082847cea72431aa8235f54941ed064913b.tar.gz
llvm-4048a082847cea72431aa8235f54941ed064913b.tar.bz2
llvm-4048a082847cea72431aa8235f54941ed064913b.tar.xz
Added FoldingSet style 'profiling' support for APSInt.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46189 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r--include/llvm/ADT/APSInt.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h
index 25cf245c36..1fc083d9ba 100644
--- a/include/llvm/ADT/APSInt.h
+++ b/include/llvm/ADT/APSInt.h
@@ -125,6 +125,10 @@ public:
assert(IsUnsigned == RHS.IsUnsigned && "Signedness mismatch!");
return IsUnsigned ? uge(RHS) : sge(RHS);
}
+
+ /// Profile - Used to insert APSInt objects, or objects that contain APSInt
+ /// objects, into FoldingSets.
+ void Profile(FoldingSetNodeID& ID) const;
};
} // end namespace llvm