aboutsummaryrefslogtreecommitdiffstats
path: root/solc/CommandLineInterface.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-18 06:48:07 +0800
committerchriseth <chris@ethereum.org>2018-10-18 18:50:06 +0800
commit0690aae09d1591b65d6808e6c6c547b63ddb3ce9 (patch)
treedbc55c01999b9f6f1448de2dceecda7ff4ffde56 /solc/CommandLineInterface.cpp
parent7609e2871e77b623d4c6187b7ebed693ce74cd0e (diff)
downloaddexon-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.cpp10
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)