aboutsummaryrefslogtreecommitdiffstats
path: root/lllc
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:34:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-10-18 19:55:12 +0800
commit7186e142b8ea546d98dc8ddb630da47362be8b0a (patch)
treefe387b3fe8600a88435b99047604f267a334e098 /lllc
parentf67d34e4ec379aeed3ee2c05227a228c748b4d9d (diff)
downloaddexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.gz
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.bz2
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.lz
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.xz
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.tar.zst
dexon-solidity-7186e142b8ea546d98dc8ddb630da47362be8b0a.zip
Rename contentsString to readFileAsString
Diffstat (limited to 'lllc')
-rw-r--r--lllc/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp
index 8b990eec..4ff204ba 100644
--- a/lllc/main.cpp
+++ b/lllc/main.cpp
@@ -127,7 +127,7 @@ int main(int argc, char** argv)
}
}
else
- src = contentsString(infile);
+ src = readFileAsString(infile);
vector<string> errors;
if (src.empty())
@@ -140,7 +140,7 @@ int main(int argc, char** argv)
}
else if (mode == Binary || mode == Hex)
{
- auto bs = compileLLL(src, optimise ? true : false, &errors, contentsString);
+ auto bs = compileLLL(src, optimise ? true : false, &errors, readFileAsString);
if (mode == Hex)
cout << toHex(bs) << endl;
else if (mode == Binary)
@@ -152,7 +152,7 @@ int main(int argc, char** argv)
}
else if (mode == Assembly)
{
- cout << compileLLLToAsm(src, optimise ? true : false, &errors, contentsString) << endl;
+ cout << compileLLLToAsm(src, optimise ? true : false, &errors, readFileAsString) << endl;
}
for (auto const& i: errors)