aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorSam Bishop <sam@bishop.dhs.org>2008-03-25 04:41:18 +0000
committerSam Bishop <sam@bishop.dhs.org>2008-03-25 04:41:18 +0000
commite37dd805bee84660eba40e8503bc2e19a4202350 (patch)
treecb3c20234f82ce900ee34430034710cac5651c2f /include/llvm
parent348c61831624e93741f08edec256ba20b94ba7b4 (diff)
downloadexternal_llvm-e37dd805bee84660eba40e8503bc2e19a4202350.zip
external_llvm-e37dd805bee84660eba40e8503bc2e19a4202350.tar.gz
external_llvm-e37dd805bee84660eba40e8503bc2e19a4202350.tar.bz2
Make a note of the fact that EmitOwnedPtr() has nothing to do with the
OwningPtr<> class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Bitcode/Serialize.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Bitcode/Serialize.h b/include/llvm/Bitcode/Serialize.h
index b493c57..eae9e7c 100644
--- a/include/llvm/Bitcode/Serialize.h
+++ b/include/llvm/Bitcode/Serialize.h
@@ -57,6 +57,8 @@ public:
template <typename T>
inline void EmitRef(const T& ref) { EmitPtr(&ref); }
+ // Emit a pointer and the object pointed to. (This has no relation to the
+ // OwningPtr<> class.)
template <typename T>
inline void EmitOwnedPtr(T* ptr) {
EmitPtr(ptr);