1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

[StackMaps] Remove format version from the class name [NFC]

Motivation is to reduce silly diffs when we change the format.  For instance, this causes most of D59020 to disappear.

llvm-svn: 358322
This commit is contained in:
Philip Reames 2019-04-13 02:02:56 +00:00
parent 4df243c1c6
commit 65f84a945f
4 changed files with 14 additions and 13 deletions

View File

@ -19,8 +19,9 @@
namespace llvm {
/// A parser for the latest stackmap format. At the moment, latest=V2.
template <support::endianness Endianness>
class StackMapV2Parser {
class StackMapParser {
public:
template <typename AccessorT>
class AccessorIterator {
@ -49,7 +50,7 @@ public:
/// Accessor for function records.
class FunctionAccessor {
friend class StackMapV2Parser;
friend class StackMapParser;
public:
/// Get the function address.
@ -81,7 +82,7 @@ public:
/// Accessor for constants.
class ConstantAccessor {
friend class StackMapV2Parser;
friend class StackMapParser;
public:
/// Return the value of this constant.
@ -105,7 +106,7 @@ public:
/// Accessor for location records.
class LocationAccessor {
friend class StackMapV2Parser;
friend class StackMapParser;
friend class RecordAccessor;
public:
@ -164,7 +165,7 @@ public:
/// Accessor for stackmap live-out fields.
class LiveOutAccessor {
friend class StackMapV2Parser;
friend class StackMapParser;
friend class RecordAccessor;
public:
@ -195,7 +196,7 @@ public:
/// Accessor for stackmap records.
class RecordAccessor {
friend class StackMapV2Parser;
friend class StackMapParser;
public:
using location_iterator = AccessorIterator<LocationAccessor>;
@ -299,12 +300,12 @@ public:
/// Construct a parser for a version-2 stackmap. StackMap data will be read
/// from the given array.
StackMapV2Parser(ArrayRef<uint8_t> StackMapSection)
StackMapParser(ArrayRef<uint8_t> StackMapSection)
: StackMapSection(StackMapSection) {
ConstantsListOffset = FunctionListOffset + getNumFunctions() * FunctionSize;
assert(StackMapSection[0] == 2 &&
"StackMapV2Parser can only parse version 2 stackmaps");
"StackMapParser can only parse version 2 stackmaps");
unsigned CurrentRecordOffset =
ConstantsListOffset + getNumConstants() * ConstantSize;

View File

@ -1867,10 +1867,10 @@ void COFFDumper::printStackMap() const {
if (Obj->isLittleEndian())
prettyPrintStackMap(
W, StackMapV2Parser<support::little>(StackMapContentsArray));
W, StackMapParser<support::little>(StackMapContentsArray));
else
prettyPrintStackMap(W,
StackMapV2Parser<support::big>(StackMapContentsArray));
StackMapParser<support::big>(StackMapContentsArray));
}
void COFFDumper::printAddrsig() {

View File

@ -2407,7 +2407,7 @@ template <class ELFT> void ELFDumper<ELFT>::printStackMap() const {
unwrapOrError(Obj->getSectionContents(StackMapSection));
prettyPrintStackMap(
W, StackMapV2Parser<ELFT::TargetEndianness>(StackMapContentsArray));
W, StackMapParser<ELFT::TargetEndianness>(StackMapContentsArray));
}
template <class ELFT> void ELFDumper<ELFT>::printGroupSections() {

View File

@ -667,10 +667,10 @@ void MachODumper::printStackMap() const {
if (Obj->isLittleEndian())
prettyPrintStackMap(
W, StackMapV2Parser<support::little>(StackMapContentsArray));
W, StackMapParser<support::little>(StackMapContentsArray));
else
prettyPrintStackMap(W,
StackMapV2Parser<support::big>(StackMapContentsArray));
StackMapParser<support::big>(StackMapContentsArray));
}
void MachODumper::printNeededLibraries() {