From 4af032dce7321310d014bf7485e35820e59dbe8f Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 20 Dec 2013 10:02:59 +0000 Subject: [PECOFF] Assign default export ordinals in LinkingContext::verify(). Default ordinals were assigned in EdataPass, and the assigned values were then discarded in the pass. No code other than EdataPass would not be able to get all of the information about ordinals. That's not ideal since I'm writing code to emit an Import Library file, which also needs ordinals. This is a patch to move the code to assign default ordinals from EdataPass to LinkingContext::verify(), so that assigned ordinals will be available anywhere. No functionality change. llvm-svn: 197797 --- lld/unittests/DriverTests/WinLinkDriverTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lld/unittests/DriverTests/WinLinkDriverTest.cpp') diff --git a/lld/unittests/DriverTests/WinLinkDriverTest.cpp b/lld/unittests/DriverTests/WinLinkDriverTest.cpp index 2568da8e819..b1a00c30421 100644 --- a/lld/unittests/DriverTests/WinLinkDriverTest.cpp +++ b/lld/unittests/DriverTests/WinLinkDriverTest.cpp @@ -162,7 +162,7 @@ TEST_F(WinLinkParserTest, Export) { _context.getDllExports(); EXPECT_TRUE(exports.size() == 1); EXPECT_EQ("foo", exports[0].name); - EXPECT_EQ(-1, exports[0].ordinal); + EXPECT_EQ(1, exports[0].ordinal); EXPECT_FALSE(exports[0].noname); EXPECT_FALSE(exports[0].isData); } -- cgit v1.2.3