Commit e08da9b
Replace exit() calls with exceptions in shared library code
In lib/Support/ErrorHandling.cpp, remove the #ifndef LLVM_ON_WIN32 guard
so that report_fatal_error() and llvm_unreachable_internal() throw
hlsl::Exception on all platforms instead of calling exit(1)/abort() on
non-Windows.
In lib/Support/CommandLine.cpp, replace exit() calls with
report_fatal_error() which now throws an exception on all platforms.
Co-authored-by: damyanp <[email protected]>1 parent 300421e commit e08da9b
2 files changed
Lines changed: 6 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
1114 | | - | |
| 1114 | + | |
1115 | 1115 | | |
1116 | 1116 | | |
1117 | 1117 | | |
| |||
1547 | 1547 | | |
1548 | 1548 | | |
1549 | 1549 | | |
1550 | | - | |
| 1550 | + | |
1551 | 1551 | | |
1552 | 1552 | | |
1553 | 1553 | | |
| |||
1798 | 1798 | | |
1799 | 1799 | | |
1800 | 1800 | | |
1801 | | - | |
| 1801 | + | |
1802 | 1802 | | |
1803 | 1803 | | |
1804 | 1804 | | |
| |||
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
1815 | | - | |
| 1815 | + | |
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 91 | + | |
113 | 92 | | |
114 | 93 | | |
115 | 94 | | |
116 | 95 | | |
117 | 96 | | |
118 | | - | |
119 | 97 | | |
120 | 98 | | |
121 | 99 | | |
| |||
132 | 110 | | |
133 | 111 | | |
134 | 112 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 113 | + | |
139 | 114 | | |
140 | | - | |
141 | 115 | | |
142 | 116 | | |
143 | 117 | | |
| |||
0 commit comments