diff options
author | Dan Gohman <sunfish@mozilla.com> | 2016-01-07 11:07:20 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@mozilla.com> | 2016-01-07 11:07:20 -0800 |
commit | 6c4c158537c3ad0b8819312c8a6c737df1cdfdc6 (patch) | |
tree | 78e74be508fbb17dbdeea305b21cfbf1e5a28c64 /src/s2wasm.h | |
parent | 0c7e5beba6a1e2f5a6f23d20acc4cdce72f29f20 (diff) | |
download | binaryen-6c4c158537c3ad0b8819312c8a6c737df1cdfdc6.tar.gz binaryen-6c4c158537c3ad0b8819312c8a6c737df1cdfdc6.tar.bz2 binaryen-6c4c158537c3ad0b8819312c8a6c737df1cdfdc6.zip |
LLVM is now emitting private labels with a ".L" prefix. Update binaryen.
The .L prefix convention is admittedly not the prettiest convention
possible, but it is widely used in the ELF ecosystem.
Diffstat (limited to 'src/s2wasm.h')
-rw-r--r-- | src/s2wasm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/s2wasm.h b/src/s2wasm.h index 48d6d9350..4e3ec23e5 100644 --- a/src/s2wasm.h +++ b/src/s2wasm.h @@ -752,8 +752,8 @@ private: bstack.back()->list.push_back(curr); bstack.push_back(curr); seenLabels.insert(curr->name); - } else if (match("BB")) { - s -= 2; + } else if (match(".LBB")) { + s -= 4; lastLabel = getStrToColon(); s++; skipWhitespace(); @@ -825,7 +825,7 @@ private: makeHost(MemorySize); } else if (match("grow_memory")) { makeHost1(GrowMemory); - } else if (match("func_end")) { + } else if (match(".Lfunc_end")) { s = strchr(s, '\n'); s++; s = strchr(s, '\n'); |