1 /*========================== begin_copyright_notice ============================
2 
3 Copyright (C) 2017-2021 Intel Corporation
4 
5 SPDX-License-Identifier: MIT
6 
7 ============================= end_copyright_notice ===========================*/
8 
9 #pragma once
10 
11 #include "common/LLVMWarningsPush.hpp"
12 #include <llvm/Support/MemoryBuffer.h>
13 #include "common/LLVMWarningsPop.hpp"
14 
15 #include <string>
16 
17 namespace llvm
18 {
19     MemoryBuffer* LoadBufferFromResource(const char *pResName, const char *pResType);
20 
21     /// LoadBufferFromFile - Loads a buffer from a file in disk
22     ///
23     MemoryBuffer* LoadBufferFromFile( const std::string &FileName );
24 
25 } // namespace llvm
26 
27