diff options
author | Zachary Turner <zturner@google.com> | 2015-04-27 17:19:26 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-04-27 17:19:26 +0000 |
commit | c205570127c9f35607e55e96c4a2fac4c2553e99 (patch) | |
tree | 3915f9f2683dffdcca3549d6f94c04bbe5c82b1f /llvm/lib/Support/COM.cpp | |
parent | 035025c0da0bbcd987093187b23ccd284d0942d9 (diff) | |
download | llvm-c205570127c9f35607e55e96c4a2fac4c2553e99.zip llvm-c205570127c9f35607e55e96c4a2fac4c2553e99.tar.gz llvm-c205570127c9f35607e55e96c4a2fac4c2553e99.tar.bz2 |
Make an RAII com initializer.
Differential Revision: http://reviews.llvm.org/D9267
Reviewed By: Aaron Ballman, David Majnemer
llvm-svn: 235898
Diffstat (limited to 'llvm/lib/Support/COM.cpp')
-rw-r--r-- | llvm/lib/Support/COM.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/lib/Support/COM.cpp b/llvm/lib/Support/COM.cpp new file mode 100644 index 0000000..cf3a133 --- /dev/null +++ b/llvm/lib/Support/COM.cpp @@ -0,0 +1,23 @@ +//===-- COM.cpp - Implement COM utility classes -----------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file implements utility classes related to COM. +// +//===----------------------------------------------------------------------===// + +#include "llvm/Support/COM.h" + +#include "llvm/Config/config.h" + +// Include the platform-specific parts of this class. +#ifdef LLVM_ON_UNIX +#include "Unix/COM.inc" +#elif LLVM_ON_WIN32 +#include "Windows/COM.inc" +#endif |