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 /lib | |
parent | 0382a4c98ea8a73cbe2232d71b4bf1303d718274 (diff) | |
download | external_llvm-88af6b9217f9ff8b4592f38ac5175de697275f49.zip external_llvm-88af6b9217f9ff8b4592f38ac5175de697275f49.tar.gz external_llvm-88af6b9217f9ff8b4592f38ac5175de697275f49.tar.bz2 |
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 'lib')
-rw-r--r-- | lib/Object/ObjectFile.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Object/ObjectFile.cpp b/lib/Object/ObjectFile.cpp index 29aa4b8..c2ab4a5 100644 --- a/lib/Object/ObjectFile.cpp +++ b/lib/Object/ObjectFile.cpp @@ -14,9 +14,10 @@ #include "llvm/Object/ObjectFile.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/MemoryBuffer.h" +#include "llvm/System/Path.h" -namespace llvm { -namespace object { +using namespace llvm; +using namespace object; ObjectFile::ObjectFile(MemoryBuffer *Object) : MapFile(Object) { @@ -60,9 +61,6 @@ ObjectFile *ObjectFile::createObjectFile(MemoryBuffer *Object) { } } -ObjectFile *ObjectFile::createObjectFile(const sys::Path &ObjectPath) { - return createObjectFile(MemoryBuffer::getFile(ObjectPath.c_str())); +ObjectFile *ObjectFile::createObjectFile(StringRef ObjectPath) { + return createObjectFile(MemoryBuffer::getFile(ObjectPath)); } - -} // end namespace object -} // end namespace llvm |