summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-07-11 23:06:52 +0000
committerEric Christopher <echristo@apple.com>2011-07-11 23:06:52 +0000
commit71520a867d5c3d34762cef78c10fe5b54324537e (patch)
tree5bdecbda90b566debd139bbdbcb1ac9ff29c7092 /llvm/utils/TableGen/TableGen.cpp
parent571419bae6765653c47967ba5462c6e06571a49c (diff)
downloadbcm5719-llvm-71520a867d5c3d34762cef78c10fe5b54324537e.tar.gz
bcm5719-llvm-71520a867d5c3d34762cef78c10fe5b54324537e.zip
Revert r134921, 134917, 134908 and 134907. They're causing failures
in multiple buildbots. llvm-svn: 134936
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index 23a67c0b84b..e8eacb841d0 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/utils/TableGen/TableGen.cpp
@@ -208,7 +208,6 @@ int main(int argc, char **argv) {
if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), File)) {
errs() << "Could not open input file '" << InputFilename << "': "
<< ec.message() <<"\n";
- Init::ReleaseMemory();
return 1;
}
MemoryBuffer *F = File.take();
@@ -222,30 +221,25 @@ int main(int argc, char **argv) {
TGParser Parser(SrcMgr, Records);
- if (Parser.ParseFile()) {
- Init::ReleaseMemory();
+ if (Parser.ParseFile())
return 1;
- }
std::string Error;
tool_output_file Out(OutputFilename.c_str(), Error);
if (!Error.empty()) {
errs() << argv[0] << ": error opening " << OutputFilename
<< ":" << Error << "\n";
- Init::ReleaseMemory();
return 1;
}
if (!DependFilename.empty()) {
if (OutputFilename == "-") {
errs() << argv[0] << ": the option -d must be used together with -o\n";
- Init::ReleaseMemory();
return 1;
}
tool_output_file DepOut(DependFilename.c_str(), Error);
if (!Error.empty()) {
errs() << argv[0] << ": error opening " << DependFilename
<< ":" << Error << "\n";
- Init::ReleaseMemory();
return 1;
}
DepOut.os() << DependFilename << ":";
@@ -388,14 +382,11 @@ int main(int argc, char **argv) {
}
default:
assert(1 && "Invalid Action");
- Init::ReleaseMemory();
return 1;
}
// Declare success.
Out.keep();
-
- Init::ReleaseMemory();
return 0;
} catch (const TGError &Error) {
@@ -408,7 +399,5 @@ int main(int argc, char **argv) {
errs() << argv[0] << ": Unknown unexpected exception occurred.\n";
}
- Init::ReleaseMemory();
-
return 1;
}
OpenPOWER on IntegriCloud