summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-12-21 17:19:31 +0000
committerDan Gohman <dan433584@gmail.com>2015-12-21 17:19:31 +0000
commit8080c4fd47dc0e53e6c7556febc5ee19c9b15482 (patch)
treec48301aab7c3eb94ac827d98b89af2cfcd933f55
parentcd530e1a89cbb08fac835214a917008cd4d647c8 (diff)
[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
-rw-r--r--lib/Target/WebAssembly/WebAssemblyMCInstLower.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/lib/Target/WebAssembly/WebAssemblyMCInstLower.h b/lib/Target/WebAssembly/WebAssemblyMCInstLower.h
index 03b8268fc33..6d704704f57 100644
--- a/lib/Target/WebAssembly/WebAssemblyMCInstLower.h
+++ b/lib/Target/WebAssembly/WebAssemblyMCInstLower.h
@@ -16,36 +16,30 @@
#ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
#define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYMCINSTLOWER_H
+#include "llvm/MC/MCInst.h"
#include "llvm/Support/Compiler.h"
namespace llvm {
class AsmPrinter;
class MCContext;
-class MCInst;
-class MCOperand;
class MCSymbol;
class MachineInstr;
-class MachineModuleInfoMachO;
class MachineOperand;
-class Mangler;
-// WebAssemblyMCInstLower - This class is used to lower an MachineInstr into an
-// MCInst.
+/// This class is used to lower an MachineInstr into an MCInst.
class LLVM_LIBRARY_VISIBILITY WebAssemblyMCInstLower {
MCContext &Ctx;
-
AsmPrinter &Printer;
+ MCOperand LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const;
+ MCSymbol *GetGlobalAddressSymbol(const MachineOperand &MO) const;
+ MCSymbol *GetExternalSymbolSymbol(const MachineOperand &MO) const;
+
public:
WebAssemblyMCInstLower(MCContext &ctx, AsmPrinter &printer)
: Ctx(ctx), Printer(printer) {}
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