Commit ce581635 by Jan Voung

Add pnacl-freeze to the tests_lit/lit.cfg. Also, unsigned vs signed.

Otherwise, I don't have pnacl-freeze in my path, and I think the lit tests have trouble finding it. src/PNaClTranslator.cpp: In member function ‘uint32_t {anonymous}::FunctionParser::convertRelativeToAbsIndex(int32_t)’: src/PNaClTranslator.cpp:882:55: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (Id > 0 && AbsNextId < static_cast<uint32_t>(Id)) { ^ BUG=none R=kschimpf@google.com, stichnot@chromium.org Review URL: https://codereview.chromium.org/515003004
parent d6064a1a
...@@ -879,7 +879,7 @@ private: ...@@ -879,7 +879,7 @@ private:
// an absolute value index. // an absolute value index.
uint32_t convertRelativeToAbsIndex(int32_t Id) { uint32_t convertRelativeToAbsIndex(int32_t Id) {
int32_t AbsNextId = CachedNumGlobalValueIDs + LocalOperands.size(); int32_t AbsNextId = CachedNumGlobalValueIDs + LocalOperands.size();
if (Id > 0 && AbsNextId < static_cast<uint32_t>(Id)) { if (Id > 0 && AbsNextId < Id) {
std::string Buffer; std::string Buffer;
raw_string_ostream StrBuf(Buffer); raw_string_ostream StrBuf(Buffer);
StrBuf << "Invalid relative value id: " << Id StrBuf << "Invalid relative value id: " << Id
......
...@@ -42,7 +42,8 @@ config.substitutions.append( ...@@ -42,7 +42,8 @@ config.substitutions.append(
config.substitutions.append(('%llvm2ice', llvm2icetool)) config.substitutions.append(('%llvm2ice', llvm2icetool))
config.substitutions.append(('%szdiff', os.path.join(bin_root, 'szdiff.py'))) config.substitutions.append(('%szdiff', os.path.join(bin_root, 'szdiff.py')))
llvmbintools = [r"\bFileCheck\b", r"\bllvm-mc\b", r"\bnot\b"] llvmbintools = [r"\bFileCheck\b", r"\bllvm-mc\b", r"\bnot\b",
r"\bpnacl-freeze\b"]
for tool in llvmbintools: for tool in llvmbintools:
# The re.sub() line is adapted from one of LLVM's lit.cfg files. # The re.sub() line is adapted from one of LLVM's lit.cfg files.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment