mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
add some helper methods for asmprinter flags, from PR8417
llvm-svn: 119932
This commit is contained in:
parent
4aaa7fbb98
commit
1161b003a0
@ -127,6 +127,10 @@ public:
|
||||
///
|
||||
unsigned short getAsmPrinterFlags() const { return AsmPrinterFlags; }
|
||||
|
||||
/// clearAsmPrinterFlags - clear the AsmPrinter bitvector
|
||||
///
|
||||
void clearAsmPrinterFlags() { AsmPrinterFlags = 0; }
|
||||
|
||||
/// getAsmPrinterFlag - Return whether an AsmPrinter flag is set.
|
||||
///
|
||||
bool getAsmPrinterFlag(CommentFlag Flag) const {
|
||||
@ -138,6 +142,12 @@ public:
|
||||
void setAsmPrinterFlag(CommentFlag 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.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user