diff options
author | chriseth <chris@ethereum.org> | 2018-10-18 06:48:07 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-18 18:50:06 +0800 |
commit | 0690aae09d1591b65d6808e6c6c547b63ddb3ce9 (patch) | |
tree | dbc55c01999b9f6f1448de2dceecda7ff4ffde56 /solc/CommandLineInterface.cpp | |
parent | 7609e2871e77b623d4c6187b7ebed693ce74cd0e (diff) | |
download | dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.tar.gz dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.tar.zst dexon-solidity-0690aae09d1591b65d6808e6c6c547b63ddb3ce9.zip |
Remove mostly unused writeFile implementation.
Diffstat (limited to 'solc/CommandLineInterface.cpp')
-rw-r--r-- | solc/CommandLineInterface.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index e0c6a2b6..844cef90 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -1118,7 +1118,15 @@ void CommandLineInterface::writeLinkedFiles() if (src.first == g_stdinFileName) cout << src.second << endl; else - writeFile(src.first, src.second); + { + ofstream outFile(src.first); + outFile << src.second; + if (!outFile) + { + cerr << "Could not write to file " << src.first << ". Aborting." << endl; + return; + } + } } string CommandLineInterface::libraryPlaceholderHint(string const& _libraryName) |