diff options
author | Rui Ueyama <ruiu@google.com> | 2013-06-22 22:01:54 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2013-06-22 22:01:54 +0000 |
commit | 829c6e6f41e89eead9311407f504b7113ee22926 (patch) | |
tree | e1221715762f66b52bc7bb15f2cf3a8fe05474a4 /lld | |
parent | 33937e76fd7af50bb748da76bd64fedec74db9fc (diff) | |
download | bcm5719-llvm-829c6e6f41e89eead9311407f504b7113ee22926.tar.gz bcm5719-llvm-829c6e6f41e89eead9311407f504b7113ee22926.zip |
[PECOFF] Removed unnecessary namespace qualifier.
llvm-svn: 184649
Diffstat (limited to 'lld')
-rw-r--r-- | lld/lib/ReaderWriter/PECOFF/Atoms.h | 26 | ||||
-rw-r--r-- | lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp | 14 |
2 files changed, 20 insertions, 20 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/Atoms.h b/lld/lib/ReaderWriter/PECOFF/Atoms.h index 7e2bb4a246d..749dd970880 100644 --- a/lld/lib/ReaderWriter/PECOFF/Atoms.h +++ b/lld/lib/ReaderWriter/PECOFF/Atoms.h @@ -57,7 +57,7 @@ private: class COFFAbsoluteAtom : public AbsoluteAtom { public: - COFFAbsoluteAtom(const File &f, llvm::StringRef n, const coff_symbol *s) + COFFAbsoluteAtom(const File &f, StringRef n, const coff_symbol *s) : _owningFile(f), _name(n), _symbol(s) {} virtual const File &file() const { return _owningFile; } @@ -68,43 +68,43 @@ public: return scopeGlobal; } - virtual llvm::StringRef name() const { return _name; } + virtual StringRef name() const { return _name; } virtual uint64_t value() const { return _symbol->Value; } private: const File &_owningFile; - llvm::StringRef _name; + StringRef _name; const coff_symbol *_symbol; }; class COFFUndefinedAtom : public UndefinedAtom { public: - COFFUndefinedAtom(const File &f, llvm::StringRef n) + COFFUndefinedAtom(const File &f, StringRef n) : _owningFile(f), _name(n) {} virtual const File &file() const { return _owningFile; } - virtual llvm::StringRef name() const { return _name; } + virtual StringRef name() const { return _name; } virtual CanBeNull canBeNull() const { return CanBeNull::canBeNullNever; } private: const File &_owningFile; - llvm::StringRef _name; + StringRef _name; }; class COFFDefinedAtom : public DefinedAtom { public: - COFFDefinedAtom(const File &f, llvm::StringRef n, const coff_symbol *symb, - const coff_section *sec, llvm::ArrayRef<uint8_t> d, + COFFDefinedAtom(const File &f, StringRef n, const coff_symbol *symb, + const coff_section *sec, ArrayRef<uint8_t> d, StringRef sectionName, uint64_t ordinal) : _owningFile(f), _name(n), _symbol(symb), _section(sec), _data(d), _sectionName(sectionName), _ordinal(ordinal) {} virtual const File &file() const { return _owningFile; } - virtual llvm::StringRef name() const { return _name; } + virtual StringRef name() const { return _name; } virtual uint64_t ordinal() const { return _ordinal; } @@ -147,7 +147,7 @@ public: virtual SectionChoice sectionChoice() const { return sectionBasedOnContent; } - virtual llvm::StringRef customSectionName() const { return ""; } + virtual StringRef customSectionName() const { return ""; } virtual SectionPosition sectionPosition() const { return sectionPositionAny; } @@ -169,7 +169,7 @@ public: virtual StringRef getSectionName() const { return _sectionName; } - virtual llvm::ArrayRef<uint8_t> rawContent() const { return _data; } + virtual ArrayRef<uint8_t> rawContent() const { return _data; } virtual reference_iterator begin() const { return reference_iterator(*this, reinterpret_cast<const void *>(0)); @@ -192,11 +192,11 @@ private: } const File &_owningFile; - llvm::StringRef _name; + StringRef _name; const coff_symbol *_symbol; const coff_section *_section; std::vector<std::unique_ptr<COFFReference> > _references; - llvm::ArrayRef<uint8_t> _data; + ArrayRef<uint8_t> _data; StringRef _sectionName; uint64_t _ordinal; }; diff --git a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp index 3c3693b52af..32f967e11ca 100644 --- a/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp +++ b/lld/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp @@ -52,7 +52,7 @@ private: public: FileCOFF(const TargetInfo &ti, std::unique_ptr<llvm::MemoryBuffer> MB, - llvm::error_code &EC) + error_code &EC) : File(MB->getBufferIdentifier(), kindObject), _targetInfo(ti) { llvm::OwningPtr<llvm::object::Binary> Bin; EC = llvm::object::createBinary(MB.release(), Bin); @@ -121,7 +121,7 @@ private: const coff_symbol *Symb; if (error_code ec = Obj->getSymbol(i, Symb)) return ec; - llvm::StringRef Name; + StringRef Name; if (error_code ec = Obj->getSymbolName(Symb, Name)) return ec; @@ -183,7 +183,7 @@ private: return A->Value < B->Value; })); - llvm::ArrayRef<uint8_t> SecData; + ArrayRef<uint8_t> SecData; StringRef sectionName; if (error_code ec = Obj->getSectionContents(section, SecData)) return ec; @@ -193,7 +193,7 @@ private: // Create an atom for the entire section. if (symbols.empty()) { - llvm::ArrayRef<uint8_t> Data(SecData.data(), SecData.size()); + ArrayRef<uint8_t> Data(SecData.data(), SecData.size()); atoms.push_back(new (AtomStorage.Allocate<COFFDefinedAtom>()) COFFDefinedAtom(*this, "", nullptr, section, Data, sectionName, ordinal++)); @@ -204,7 +204,7 @@ private: // section. if (symbols[0]->Value != 0) { uint64_t Size = symbols[0]->Value; - llvm::ArrayRef<uint8_t> Data(SecData.data(), Size); + ArrayRef<uint8_t> Data(SecData.data(), Size); atoms.push_back(new (AtomStorage.Allocate<COFFDefinedAtom>()) COFFDefinedAtom(*this, "", nullptr, section, Data, sectionName, ordinal++)); @@ -216,8 +216,8 @@ private: const uint8_t *end = (si + 1 == se) ? start + SecData.size() : SecData.data() + (*(si + 1))->Value; - llvm::ArrayRef<uint8_t> Data(start, end); - llvm::StringRef name; + ArrayRef<uint8_t> Data(start, end); + StringRef name; if (error_code ec = Obj->getSymbolName(*si, name)) return ec; atoms.push_back(new (AtomStorage.Allocate<COFFDefinedAtom>()) |