Index: llvm/trunk/lib/Object/COFFModuleDefinition.cpp =================================================================== --- llvm/trunk/lib/Object/COFFModuleDefinition.cpp +++ llvm/trunk/lib/Object/COFFModuleDefinition.cpp @@ -117,7 +117,7 @@ return Token(Identifier, S); } default: { - size_t End = Buf.find_first_of("=,\r\n \t\v"); + size_t End = Buf.find_first_of("=,;\r\n \t\v"); StringRef Word = Buf.substr(0, End); Kind K = llvm::StringSwitch(Word) .Case("BASE", KwBase) Index: llvm/trunk/test/tools/llvm-dlltool/coff-exports.def =================================================================== --- llvm/trunk/test/tools/llvm-dlltool/coff-exports.def +++ llvm/trunk/test/tools/llvm-dlltool/coff-exports.def @@ -5,11 +5,17 @@ LIBRARY test.dll EXPORTS -TestFunction +TestFunction1 +TestFunction2; +TestFunction3 ; This is a comment ; CHECK: File: test.dll ; CHECK: Format: COFF-import-file ; CHECK: Type: code ; CHECK: Name type: name -; CHECK: Symbol: __imp_TestFunction -; CHECK: Symbol: TestFunction +; CHECK: Symbol: __imp_TestFunction1 +; CHECK: Symbol: TestFunction1 +; CHECK: Symbol: __imp_TestFunction2{{$}} +; CHECK: Symbol: TestFunction2{{$}} +; CHECK: Symbol: __imp_TestFunction3{{$}} +; CHECK: Symbol: TestFunction3{{$}}