mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-11 11:34:02 +00:00
Delete MCInstPrinter::AvailableFeatures.
All the ports have been fixed to read the feature bits from the subtarget passed to the print methods. Also, delete the call to setAvailableFeatures in the constructor of NVPTX's instprinter as the instprinter wasn't using the feature bits anywhere. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e03685b10a
commit
971af2987a
@ -41,9 +41,6 @@ protected:
|
|||||||
const MCInstrInfo &MII;
|
const MCInstrInfo &MII;
|
||||||
const MCRegisterInfo &MRI;
|
const MCRegisterInfo &MRI;
|
||||||
|
|
||||||
/// The current set of available features.
|
|
||||||
uint64_t AvailableFeatures;
|
|
||||||
|
|
||||||
/// True if we are printing marked up assembly.
|
/// True if we are printing marked up assembly.
|
||||||
bool UseMarkup;
|
bool UseMarkup;
|
||||||
|
|
||||||
@ -59,7 +56,7 @@ public:
|
|||||||
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii,
|
MCInstPrinter(const MCAsmInfo &mai, const MCInstrInfo &mii,
|
||||||
const MCRegisterInfo &mri)
|
const MCRegisterInfo &mri)
|
||||||
: CommentStream(nullptr), MAI(mai), MII(mii), MRI(mri),
|
: CommentStream(nullptr), MAI(mai), MII(mii), MRI(mri),
|
||||||
AvailableFeatures(0), UseMarkup(0), PrintImmHex(0),
|
UseMarkup(0), PrintImmHex(0),
|
||||||
PrintHexStyle(HexStyle::C) {}
|
PrintHexStyle(HexStyle::C) {}
|
||||||
|
|
||||||
virtual ~MCInstPrinter();
|
virtual ~MCInstPrinter();
|
||||||
@ -79,9 +76,6 @@ public:
|
|||||||
/// printRegName - Print the assembler register name.
|
/// printRegName - Print the assembler register name.
|
||||||
virtual void printRegName(raw_ostream &OS, unsigned RegNo) const;
|
virtual void printRegName(raw_ostream &OS, unsigned RegNo) const;
|
||||||
|
|
||||||
uint64_t getAvailableFeatures() const { return AvailableFeatures; }
|
|
||||||
void setAvailableFeatures(uint64_t Value) { AvailableFeatures = Value; }
|
|
||||||
|
|
||||||
bool getUseMarkup() const { return UseMarkup; }
|
bool getUseMarkup() const { return UseMarkup; }
|
||||||
void setUseMarkup(bool Value) { UseMarkup = Value; }
|
void setUseMarkup(bool Value) { UseMarkup = Value; }
|
||||||
|
|
||||||
|
@ -32,9 +32,7 @@ using namespace llvm;
|
|||||||
NVPTXInstPrinter::NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
NVPTXInstPrinter::NVPTXInstPrinter(const MCAsmInfo &MAI, const MCInstrInfo &MII,
|
||||||
const MCRegisterInfo &MRI,
|
const MCRegisterInfo &MRI,
|
||||||
const MCSubtargetInfo &STI)
|
const MCSubtargetInfo &STI)
|
||||||
: MCInstPrinter(MAI, MII, MRI) {
|
: MCInstPrinter(MAI, MII, MRI) {}
|
||||||
setAvailableFeatures(STI.getFeatureBits());
|
|
||||||
}
|
|
||||||
|
|
||||||
void NVPTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
|
void NVPTXInstPrinter::printRegName(raw_ostream &OS, unsigned RegNo) const {
|
||||||
// Decode the virtual register
|
// Decode the virtual register
|
||||||
|
Loading…
x
Reference in New Issue
Block a user