diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-18 19:54:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-10-18 19:56:11 +0800 |
commit | 6f2865228cb02f0ba0b58990a9d3006dbe2692c6 (patch) | |
tree | 8b243e672f2bd2f495215119fd5ee02c4d5c8430 /lllc | |
parent | 7186e142b8ea546d98dc8ddb630da47362be8b0a (diff) | |
download | dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar.gz dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar.bz2 dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar.lz dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar.xz dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.tar.zst dexon-solidity-6f2865228cb02f0ba0b58990a9d3006dbe2692c6.zip |
Add readStandardInput helper
Diffstat (limited to 'lllc')
-rw-r--r-- | lllc/main.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lllc/main.cpp b/lllc/main.cpp index 4ff204ba..5679bc2b 100644 --- a/lllc/main.cpp +++ b/lllc/main.cpp @@ -118,14 +118,7 @@ int main(int argc, char** argv) string src; if (infile.empty()) - { - string s; - while (!cin.eof()) - { - getline(cin, s); - src.append(s); - } - } + src = readStandardInput(); else src = readFileAsString(infile); |