Skip to content

Commit 53353f7

Browse files
committed
DLLExport identify_magic
1 parent 19bad2a commit 53353f7

File tree

1 file changed

+4
-2
lines changed
  • llvm/include/llvm/BinaryFormat

1 file changed

+4
-2
lines changed

llvm/include/llvm/BinaryFormat/Magic.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef LLVM_BINARYFORMAT_MAGIC_H
1010
#define LLVM_BINARYFORMAT_MAGIC_H
1111

12+
#include "llvm/Support/Compiler.h"
13+
1214
#include <system_error>
1315

1416
namespace llvm {
@@ -72,15 +74,15 @@ struct file_magic {
7274
};
7375

7476
/// Identify the type of a binary file based on how magical it is.
75-
file_magic identify_magic(StringRef magic);
77+
LLVM_ABI file_magic identify_magic(StringRef magic);
7678

7779
/// Get and identify \a path's type based on its content.
7880
///
7981
/// @param path Input path.
8082
/// @param result Set to the type of file, or file_magic::unknown.
8183
/// @returns errc::success if result has been successfully set, otherwise a
8284
/// platform-specific error_code.
83-
std::error_code identify_magic(const Twine &path, file_magic &result);
85+
LLVM_ABI std::error_code identify_magic(const Twine &path, file_magic &result);
8486
} // namespace llvm
8587

8688
#endif

0 commit comments

Comments
 (0)