projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[WebAssembly] Factor out a TypeToString function, since we need it in multiple places.
[oota-llvm.git]
/
lib
/
Target
/
WebAssembly
/
InstPrinter
/
WebAssemblyInstPrinter.h
diff --git
a/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h
b/lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h
index 319c8ee1d5d9edc64bc7e019a5183ab921da4a28..20569da0b110d5871a525511e7624f60cebf41bd 100644
(file)
--- a/
lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h
+++ b/
lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h
@@
-17,6
+17,7
@@
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/MC/MCInstPrinter.h"
#include "llvm/Support/raw_ostream.h"
+#include "llvm/CodeGen/MachineValueType.h"
namespace llvm {
namespace llvm {
@@
-40,6
+41,12
@@
public:
static const char *getRegisterName(unsigned RegNo);
};
static const char *getRegisterName(unsigned RegNo);
};
+namespace WebAssembly {
+
+const char *TypeToString(MVT Ty);
+
+} // end namespace WebAssembly
+
} // end namespace llvm
#endif
} // end namespace llvm
#endif