1 //===- llvm/Support/COM.h ---------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 /// Provides a library for accessing COM functionality of the Host OS.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_SUPPORT_COM_H
15 #define LLVM_SUPPORT_COM_H
20 enum class COMThreadingMode { SingleThreaded, MultiThreaded };
22 class InitializeCOMRAII {
24 explicit InitializeCOMRAII(COMThreadingMode Threading,
25 bool SpeedOverMemory = false);
29 InitializeCOMRAII(const InitializeCOMRAII &) = delete;
30 void operator=(const InitializeCOMRAII &) = delete;