diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-10 16:40:47 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-10 16:40:47 -0800 |
commit | 6c80e7593c5944c7380c74d5de1831ff445d8cb0 (patch) | |
tree | 9bee80fa3c164aed5e909cf027fa7b50e46a4ff7 | |
parent | 63a265fa45837b16b4bbf9785b178449caf71417 (diff) |
ignore llvm.module metadata
-rwxr-xr-x | emscripten.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emscripten.py b/emscripten.py index 15beb4ee..98dcb6bb 100755 --- a/emscripten.py +++ b/emscripten.py @@ -110,6 +110,7 @@ def emscript(infile, settings, outfile, libraries=[]): elif line.find(' = type { ') > 0: pre.append(line) # type elif line.startswith('!'): + if line.startswith('!llvm.module'): continue # we can ignore that meta.append(line) # metadata else: pre.append(line) # pre needs it so we know about globals in pre and funcs. So emit globals there |