mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-06 14:57:41 +00:00
ParseFile() may throw, so extend the try/catch to handle that.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131004 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9dabb78519
commit
96883ec700
@ -228,6 +228,7 @@ int main(int argc, char **argv) {
|
||||
cl::ParseCommandLineOptions(argc, argv);
|
||||
|
||||
|
||||
try {
|
||||
// Parse the input file.
|
||||
if (ParseFile(InputFilename, IncludeDirs, SrcMgr, Records))
|
||||
return 1;
|
||||
@ -240,7 +241,6 @@ int main(int argc, char **argv) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
try {
|
||||
switch (Action) {
|
||||
case PrintRecords:
|
||||
Out.os() << Records; // No argument, dump all contents
|
||||
|
Loading…
Reference in New Issue
Block a user