mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-26 18:20:39 +00:00
add some helper methods for asmprinter flags, from PR8417
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119932 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -127,6 +127,10 @@ public:
|
|||||||
///
|
///
|
||||||
unsigned short getAsmPrinterFlags() const { return AsmPrinterFlags; }
|
unsigned short getAsmPrinterFlags() const { return AsmPrinterFlags; }
|
||||||
|
|
||||||
|
/// clearAsmPrinterFlags - clear the AsmPrinter bitvector
|
||||||
|
///
|
||||||
|
void clearAsmPrinterFlags() { AsmPrinterFlags = 0; }
|
||||||
|
|
||||||
/// getAsmPrinterFlag - Return whether an AsmPrinter flag is set.
|
/// getAsmPrinterFlag - Return whether an AsmPrinter flag is set.
|
||||||
///
|
///
|
||||||
bool getAsmPrinterFlag(CommentFlag Flag) const {
|
bool getAsmPrinterFlag(CommentFlag Flag) const {
|
||||||
@@ -139,6 +143,12 @@ public:
|
|||||||
AsmPrinterFlags |= (unsigned short)Flag;
|
AsmPrinterFlags |= (unsigned short)Flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// clearAsmPrinterFlag - clear specific AsmPrinter flags
|
||||||
|
///
|
||||||
|
void clearAsmPrinterFlag(CommentFlag Flag) {
|
||||||
|
AsmPrinterFlags &= ~Flag;
|
||||||
|
}
|
||||||
|
|
||||||
/// getDebugLoc - Returns the debug location id of this MachineInstr.
|
/// getDebugLoc - Returns the debug location id of this MachineInstr.
|
||||||
///
|
///
|
||||||
DebugLoc getDebugLoc() const { return debugLoc; }
|
DebugLoc getDebugLoc() const { return debugLoc; }
|
||||||
|
|||||||
Reference in New Issue
Block a user