diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-16 01:06:51 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-11-16 01:06:51 +0000 |
commit | 88af6b9217f9ff8b4592f38ac5175de697275f49 (patch) | |
tree | 900755c5fe12de23e4e0bb86bb27d8a28549dbd8 /include/llvm/Object/ObjectFile.h | |
parent | 0382a4c98ea8a73cbe2232d71b4bf1303d718274 (diff) |
Object: Get rid of sys::Path, Triple, and cleanup namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Object/ObjectFile.h')
-rw-r--r-- | include/llvm/Object/ObjectFile.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index 941046c0c5..ca51581434 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -14,12 +14,13 @@ #ifndef LLVM_OBJECT_OBJECT_FILE_H #define LLVM_OBJECT_OBJECT_FILE_H -#include "llvm/ADT/Triple.h" -#include "llvm/System/Path.h" +#include "llvm/ADT/StringRef.h" +#include "llvm/System/DataTypes.h" namespace llvm { class MemoryBuffer; +class StringRef; namespace object { @@ -155,7 +156,7 @@ public: virtual uint8_t getBytesInAddress() const = 0; virtual StringRef getFileFormatName() const = 0; - virtual Triple::ArchType getArch() const = 0; + virtual /* Triple::ArchType */ unsigned getArch() const = 0; StringRef getFilename() const; @@ -163,7 +164,7 @@ public: /// @param ObjectPath The path to the object file. ObjectPath.isObject must /// return true. /// @brief Create ObjectFile from path. - static ObjectFile *createObjectFile(const sys::Path &ObjectPath); + static ObjectFile *createObjectFile(StringRef ObjectPath); static ObjectFile *createObjectFile(MemoryBuffer *Object); private: |