File tree 3 files changed +1
-110
lines changed 3 files changed +1
-110
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,6 @@ struct COFFShortExport {
104
104
// / file, this is "baz" in "EXPORTS\nfoo = bar == baz".
105
105
std::string ImportName;
106
106
107
- // / Specifies EXPORTAS name. In a .def file, this is "bar" in
108
- // / "EXPORTS\nfoo EXPORTAS bar".
109
- std::string ExportAs;
110
-
111
107
uint16_t Ordinal = 0 ;
112
108
bool Noname = false ;
113
109
bool Data = false ;
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ enum Kind {
39
39
KwConstant,
40
40
KwData,
41
41
KwExports,
42
- KwExportAs,
43
42
KwHeapsize,
44
43
KwLibrary,
45
44
KwName,
@@ -117,7 +116,6 @@ class Lexer {
117
116
.Case (" CONSTANT" , KwConstant)
118
117
.Case (" DATA" , KwData)
119
118
.Case (" EXPORTS" , KwExports)
120
- .Case (" EXPORTAS" , KwExportAs)
121
119
.Case (" HEAPSIZE" , KwHeapsize)
122
120
.Case (" LIBRARY" , KwLibrary)
123
121
.Case (" NAME" , KwName)
@@ -284,16 +282,7 @@ class Parser {
284
282
E.ImportName = std::string (Tok.Value );
285
283
continue ;
286
284
}
287
- // EXPORTAS must be at the end of export definition
288
- if (Tok.K == KwExportAs) {
289
- read ();
290
- if (Tok.K == Eof)
291
- return createError (
292
- " unexpected end of file, EXPORTAS identifier expected" );
293
- E.ExportAs = std::string (Tok.Value );
294
- } else {
295
- unget ();
296
- }
285
+ unget ();
297
286
Info.Exports .push_back (E);
298
287
return Error::success ();
299
288
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments