[lld] r184649 - [PECOFF] Removed unnecessary namespace qualifier.
Rui Ueyama
ruiu at google.com
Sat Jun 22 15:01:54 PDT 2013
Author: ruiu
Date: Sat Jun 22 17:01:54 2013
New Revision: 184649
URL: http://llvm.org/viewvc/llvm-project?rev=184649&view=rev
Log:
[PECOFF] Removed unnecessary namespace qualifier.
Modified:
lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h
lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
Modified: lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h?rev=184649&r1=184648&r2=184649&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/Atoms.h Sat Jun 22 17:01:54 2013
@@ -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;
};
Modified: lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp?rev=184649&r1=184648&r2=184649&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp (original)
+++ lld/trunk/lib/ReaderWriter/PECOFF/ReaderCOFF.cpp Sat Jun 22 17:01:54 2013
@@ -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>())
More information about the llvm-commits
mailing list