projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[WebAssembly] Add a EM_WEBASSEMBLY value, and several bits of code that use it.
[oota-llvm.git]
/
lib
/
Object
/
ELF.cpp
diff --git
a/lib/Object/ELF.cpp
b/lib/Object/ELF.cpp
index 62c27cc427a6ab5a16e043b590a591577c11f887..12b772d930bac965f6e35754c8e8bf63c14d9457 100644
(file)
--- a/
lib/Object/ELF.cpp
+++ b/
lib/Object/ELF.cpp
@@
-91,6
+91,13
@@
StringRef getELFRelocationTypeName(uint32_t Machine, uint32_t Type) {
break;
}
break;
+ case ELF::EM_WEBASSEMBLY:
+ switch (Type) {
+#include "llvm/Support/ELFRelocs/WebAssembly.def"
+ default:
+ break;
+ }
+ break;
default:
break;
}