aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
commit5f98268d18920bf21c1f5bced4e0f5843cca7005 (patch)
tree7cf1369eea2dca24358d86460fd9255df365aad3 /include
parent109de0d448d957ea457dbaff945fb2f124af5e73 (diff)
downloadexternal_llvm-5f98268d18920bf21c1f5bced4e0f5843cca7005.zip
external_llvm-5f98268d18920bf21c1f5bced4e0f5843cca7005.tar.gz
external_llvm-5f98268d18920bf21c1f5bced4e0f5843cca7005.tar.bz2
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')
-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 25cf245..1fc083d 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