Stop MachineInstr.h from #including AsmPrinter.h

llvm-svn: 95741
This commit is contained in:
Chris Lattner 2010-02-10 01:04:16 +00:00
parent a0cd0e11c9
commit f0b06d4ed4
3 changed files with 5 additions and 2 deletions

View File

@ -21,6 +21,9 @@ namespace llvm {
class BasicBlock;
class MachineFunction;
class MCContext;
class MCSymbol;
class StringRef;
class raw_ostream;
template <>

View File

@ -33,6 +33,7 @@ class MachineRegisterInfo;
class MachineFrameInfo;
class MachineConstantPool;
class MachineJumpTableInfo;
class Pass;
class TargetMachine;
class TargetRegisterClass;

View File

@ -19,7 +19,6 @@
#include "llvm/ADT/ilist.h"
#include "llvm/ADT/ilist_node.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/Target/TargetInstrDesc.h"
#include "llvm/Target/TargetOpcodes.h"
@ -122,7 +121,7 @@ public:
/// getAsmPrinterFlag - Return whether an AsmPrinter flag is set.
///
bool getAsmPrinterFlag(AsmPrinter::CommentFlag Flag) const {
bool getAsmPrinterFlag(unsigned Flag) const {
return AsmPrinterFlags & Flag;
}