mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-16 00:16:50 +00:00
[WebAssembly] Clean up comments and fix a missing #include dependency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256168 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd530e1a89
commit
8080c4fd47
@ -16,36 +16,30 @@
|
|||||||
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
|
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
|
||||||
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
|
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
|
||||||
|
|
||||||
|
#include "llvm/MC/MCInst.h"
|
||||||
#include "llvm/Support/Compiler.h"
|
#include "llvm/Support/Compiler.h"
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
class AsmPrinter;
|
class AsmPrinter;
|
||||||
class MCContext;
|
class MCContext;
|
||||||
class MCInst;
|
|
||||||
class MCOperand;
|
|
||||||
class MCSymbol;
|
class MCSymbol;
|
||||||
class MachineInstr;
|
class MachineInstr;
|
||||||
class MachineModuleInfoMachO;
|
|
||||||
class MachineOperand;
|
class MachineOperand;
|
||||||
class Mangler;
|
|
||||||
|
|
||||||
// WebAssemblyMCInstLower - This class is used to lower an MachineInstr into an
|
/// This class is used to lower an MachineInstr into an MCInst.
|
||||||
// MCInst.
|
|
||||||
class LLVM_LIBRARY_VISIBILITY WebAssemblyMCInstLower {
|
class LLVM_LIBRARY_VISIBILITY WebAssemblyMCInstLower {
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
|
|
||||||
AsmPrinter &Printer;
|
AsmPrinter &Printer;
|
||||||
|
|
||||||
|
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
|
||||||
|
MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
|
||||||
|
MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
WebAssemblyMCInstLower(MCContext &ctx, AsmPrinter &printer)
|
WebAssemblyMCInstLower(MCContext &ctx, AsmPrinter &printer)
|
||||||
: Ctx(ctx), Printer(printer) {}
|
: Ctx(ctx), Printer(printer) {}
|
||||||
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
void Lower(const MachineInstr *MI, MCInst &OutMI) const;
|
||||||
|
|
||||||
MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
|
|
||||||
|
|
||||||
MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
|
|
||||||
MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
|
|
||||||
};
|
};
|
||||||
}
|
} // end namespace llvm
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user