mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Remove redundant 'llvm::' qualifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172358 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -36,7 +36,7 @@
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
typedef llvm::SmallString<COFF::NameSize> name;
|
||||
typedef SmallString<COFF::NameSize> name;
|
||||
|
||||
enum AuxiliaryType {
|
||||
ATFunctionDefinition,
|
||||
@ -58,7 +58,7 @@ class COFFSymbol {
|
||||
public:
|
||||
COFF::symbol Data;
|
||||
|
||||
typedef llvm::SmallVector<AuxSymbol, 1> AuxiliarySymbols;
|
||||
typedef SmallVector<AuxSymbol, 1> AuxiliarySymbols;
|
||||
|
||||
name Name;
|
||||
int Index;
|
||||
@ -69,7 +69,7 @@ public:
|
||||
|
||||
MCSymbolData const *MCData;
|
||||
|
||||
COFFSymbol(llvm::StringRef name);
|
||||
COFFSymbol(StringRef name);
|
||||
size_t size() const;
|
||||
void set_name_offset(uint32_t Offset);
|
||||
|
||||
@ -97,13 +97,13 @@ public:
|
||||
COFFSymbol *Symbol;
|
||||
relocations Relocations;
|
||||
|
||||
COFFSection(llvm::StringRef name);
|
||||
COFFSection(StringRef name);
|
||||
static size_t size();
|
||||
};
|
||||
|
||||
// This class holds the COFF string table.
|
||||
class StringTable {
|
||||
typedef llvm::StringMap<size_t> map;
|
||||
typedef StringMap<size_t> map;
|
||||
map Map;
|
||||
|
||||
void update_length();
|
||||
@ -112,7 +112,7 @@ public:
|
||||
|
||||
StringTable();
|
||||
size_t size() const;
|
||||
size_t insert(llvm::StringRef String);
|
||||
size_t insert(StringRef String);
|
||||
};
|
||||
|
||||
class WinCOFFObjectWriter : public MCObjectWriter {
|
||||
@ -144,7 +144,7 @@ public:
|
||||
COFFSection *createSection(StringRef Name);
|
||||
|
||||
template <typename object_t, typename list_t>
|
||||
object_t *createCOFFEntity(llvm::StringRef Name, list_t &List);
|
||||
object_t *createCOFFEntity(StringRef Name, list_t &List);
|
||||
|
||||
void DefineSection(MCSectionData const &SectionData);
|
||||
void DefineSymbol(MCSymbolData const &SymbolData, MCAssembler &Assembler);
|
||||
@ -202,7 +202,7 @@ static inline void write_uint8_le(void *Data, uint8_t const &Value) {
|
||||
//------------------------------------------------------------------------------
|
||||
// Symbol class implementation
|
||||
|
||||
COFFSymbol::COFFSymbol(llvm::StringRef name)
|
||||
COFFSymbol::COFFSymbol(StringRef name)
|
||||
: Name(name.begin(), name.end())
|
||||
, Other(NULL)
|
||||
, Section(NULL)
|
||||
@ -254,7 +254,7 @@ bool COFFSymbol::should_keep() const {
|
||||
//------------------------------------------------------------------------------
|
||||
// Section class implementation
|
||||
|
||||
COFFSection::COFFSection(llvm::StringRef name)
|
||||
COFFSection::COFFSection(StringRef name)
|
||||
: Name(name)
|
||||
, MCData(NULL)
|
||||
, Symbol(NULL) {
|
||||
@ -287,7 +287,7 @@ size_t StringTable::size() const {
|
||||
|
||||
/// Add String to the table iff it is not already there.
|
||||
/// @returns the index into the string table where the string is now located.
|
||||
size_t StringTable::insert(llvm::StringRef String) {
|
||||
size_t StringTable::insert(StringRef String) {
|
||||
map::iterator i = Map.find(String);
|
||||
|
||||
if (i != Map.end())
|
||||
@ -341,14 +341,14 @@ COFFSymbol *WinCOFFObjectWriter::GetOrCreateCOFFSymbol(const MCSymbol * Symbol){
|
||||
return RetSymbol;
|
||||
}
|
||||
|
||||
COFFSection *WinCOFFObjectWriter::createSection(llvm::StringRef Name) {
|
||||
COFFSection *WinCOFFObjectWriter::createSection(StringRef Name) {
|
||||
return createCOFFEntity<COFFSection>(Name, Sections);
|
||||
}
|
||||
|
||||
/// A template used to lookup or create a symbol/section, and initialize it if
|
||||
/// needed.
|
||||
template <typename object_t, typename list_t>
|
||||
object_t *WinCOFFObjectWriter::createCOFFEntity(llvm::StringRef Name,
|
||||
object_t *WinCOFFObjectWriter::createCOFFEntity(StringRef Name,
|
||||
list_t &List) {
|
||||
object_t *Object = new object_t(Name);
|
||||
|
||||
|
Reference in New Issue
Block a user