From 7186e142b8ea546d98dc8ddb630da47362be8b0a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 18 Oct 2017 12:34:29 +0100 Subject: Rename contentsString to readFileAsString --- lllc/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lllc') 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 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) -- cgit v1.2.3