1 //===- llvm/Support/COM.h ---------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
11 /// Provides a library for accessing COM functionality of the Host OS.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_SUPPORT_COM_H
16 #define LLVM_SUPPORT_COM_H
21 enum class COMThreadingMode { SingleThreaded, MultiThreaded };
23 class InitializeCOMRAII {
25 explicit InitializeCOMRAII(COMThreadingMode Threading,
26 bool SpeedOverMemory = false);
30 InitializeCOMRAII(const InitializeCOMRAII &) = delete;
31 void operator=(const InitializeCOMRAII &) = delete;