diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:49 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-10 13:44:49 +0000 |
commit | 2079716dfb3fb7e4e24b8b2e85eb6780b981a0af (patch) | |
tree | 3b0c58e50948b450b50b20ae5a38c005128edfb5 /include/lld/Core/Reader.h | |
parent | b9a1baec33e911ca24f51abf882d454e62047ea6 (diff) |
Notes
Diffstat (limited to 'include/lld/Core/Reader.h')
-rw-r--r-- | include/lld/Core/Reader.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/lld/Core/Reader.h b/include/lld/Core/Reader.h index 5105eb1aa2be..32d04249f378 100644 --- a/include/lld/Core/Reader.h +++ b/include/lld/Core/Reader.h @@ -13,14 +13,13 @@ #include "lld/Core/LLVM.h" #include "lld/Core/Reference.h" #include "llvm/ADT/StringRef.h" +#include "llvm/BinaryFormat/Magic.h" #include "llvm/Support/ErrorOr.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/MemoryBuffer.h" #include <memory> #include <vector> -using llvm::sys::fs::file_magic; - namespace llvm { namespace yaml { class IO; @@ -45,7 +44,7 @@ public: /// The method is called with: /// 1) the file_magic enumeration returned by identify_magic() /// 2) the whole file content buffer if the above is not enough. - virtual bool canParse(file_magic magic, MemoryBufferRef mb) const = 0; + virtual bool canParse(llvm::file_magic magic, MemoryBufferRef mb) const = 0; /// \brief Parse a supplied buffer (already filled with the contents of a /// file) and create a File object. |