aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2010-03-07 07:16:49 +0000
committerJeffrey Yasskin <jyasskin@google.com>2010-03-07 07:16:49 +0000
commit8c42ca937453bd216b68baff1f32b47430d5b374 (patch)
tree3202bdfb08f232e318e443227f95c66a18ef076e /include
parent9cdd9659c381001a200aa4667919297187fa5764 (diff)
downloadexternal_llvm-8c42ca937453bd216b68baff1f32b47430d5b374.zip
external_llvm-8c42ca937453bd216b68baff1f32b47430d5b374.tar.gz
external_llvm-8c42ca937453bd216b68baff1f32b47430d5b374.tar.bz2
_2_ gcc crashes, ah, ah, ah...
(Rolling back r97906.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/STLExtras.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/llvm/ADT/STLExtras.h b/include/llvm/ADT/STLExtras.h
index 8dbf790..32cf459 100644
--- a/include/llvm/ADT/STLExtras.h
+++ b/include/llvm/ADT/STLExtras.h
@@ -279,28 +279,6 @@ static inline void array_pod_sort(IteratorTy Start, IteratorTy End,
qsort(&*Start, End-Start, sizeof(*Start), Compare);
}
-//===----------------------------------------------------------------------===//
-// Extra additions to <algorithm>
-//===----------------------------------------------------------------------===//
-
-/// For a container of pointers, deletes the pointers and then clears the
-/// container.
-template<typename Container>
-void DeleteContainerPointers(Container &C) {
- for (typename Container::iterator I = C.begin(), E = C.end(); I != E; ++I)
- delete *I;
- C.clear();
-}
-
-/// In a container of pairs (usually a map) whose second element is a pointer,
-/// deletes the second elements and then clears the container.
-template<typename Container>
-void DeleteContainerSeconds(Container &C) {
- for (typename Container::iterator I = C.begin(), E = C.end(); I != E; ++I)
- delete I->second;
- C.clear();
-}
-
} // End llvm namespace
#endif