From bf402d6643d0282040a26d8ba85ff746460aee83 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 21 Jun 2013 19:30:16 +0000 Subject: [PATCH] Removed unnecessary "class" keyword. llvm-svn: 184585 --- lld/include/lld/Core/Atom.h | 2 +- lld/include/lld/Core/Reference.h | 5 +++-- lld/include/lld/ReaderWriter/Simple.h | 2 +- lld/lib/ReaderWriter/PECOFF/Atoms.h | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lld/include/lld/Core/Atom.h b/lld/include/lld/Core/Atom.h index bf1d46bf9cc3..c6b6931f86cd 100644 --- a/lld/include/lld/Core/Atom.h +++ b/lld/include/lld/Core/Atom.h @@ -53,7 +53,7 @@ public: /// file - returns the File that produced/owns this Atom - virtual const class File& file() const = 0; + virtual const File& file() const = 0; /// name - The name of the atom. For a function atom, it is the (mangled) /// name of the function. diff --git a/lld/include/lld/Core/Reference.h b/lld/include/lld/Core/Reference.h index bd709aef371b..8dc2f6d770f0 100644 --- a/lld/include/lld/Core/Reference.h +++ b/lld/include/lld/Core/Reference.h @@ -14,6 +14,7 @@ #include "llvm/ADT/StringSwitch.h" namespace lld { +class Atom; /// /// The linker has a Graph Theory model of linking. An object file is seen @@ -81,11 +82,11 @@ public: /// If the reference is an edge to another Atom, then this returns the /// other Atom. Otherwise, it returns nullptr. - virtual const class Atom * target() const = 0; + virtual const Atom *target() const = 0; /// During linking, the linker may merge graphs which coalesces some nodes /// (i.e. Atoms). To switch the target of a reference, this method is called. - virtual void setTarget(const class Atom *) = 0; + virtual void setTarget(const Atom *) = 0; /// Some relocations require a symbol and a value (e.g. foo + 4). virtual Addend addend() const = 0; diff --git a/lld/include/lld/ReaderWriter/Simple.h b/lld/include/lld/ReaderWriter/Simple.h index bf6961cef4ba..07f412bbf5a9 100644 --- a/lld/include/lld/ReaderWriter/Simple.h +++ b/lld/include/lld/ReaderWriter/Simple.h @@ -176,7 +176,7 @@ public: } /// file - returns the File that produced/owns this Atom - virtual const class File &file() const { return _file; } + virtual const File &file() const { return _file; } /// name - The name of the atom. For a function atom, it is the (mangled) /// name of the function. diff --git a/lld/lib/ReaderWriter/PECOFF/Atoms.h b/lld/lib/ReaderWriter/PECOFF/Atoms.h index bf83a002fc4f..7e2bb4a246df 100644 --- a/lld/lib/ReaderWriter/PECOFF/Atoms.h +++ b/lld/lib/ReaderWriter/PECOFF/Atoms.h @@ -60,7 +60,7 @@ public: COFFAbsoluteAtom(const File &f, llvm::StringRef n, const coff_symbol *s) : _owningFile(f), _name(n), _symbol(s) {} - virtual const class File &file() const { return _owningFile; } + virtual const File &file() const { return _owningFile; } virtual Scope scope() const { if (_symbol->StorageClass == llvm::COFF::IMAGE_SYM_CLASS_STATIC) @@ -83,7 +83,7 @@ public: COFFUndefinedAtom(const File &f, llvm::StringRef n) : _owningFile(f), _name(n) {} - virtual const class File &file() const { return _owningFile; } + virtual const File &file() const { return _owningFile; } virtual llvm::StringRef name() const { return _name; } @@ -102,7 +102,7 @@ public: : _owningFile(f), _name(n), _symbol(symb), _section(sec), _data(d), _sectionName(sectionName), _ordinal(ordinal) {} - virtual const class File &file() const { return _owningFile; } + virtual const File &file() const { return _owningFile; } virtual llvm::StringRef name() const { return _name; }