[lld] r196040 - [PECOFF] Fix /debug option.
Rui Ueyama
ruiu at google.com
Sat Nov 30 22:25:31 PST 2013
Author: ruiu
Date: Sun Dec 1 00:25:30 2013
New Revision: 196040
URL: http://llvm.org/viewvc/llvm-project?rev=196040&view=rev
Log:
[PECOFF] Fix /debug option.
/DEBUG option is to make the linker to emit debug information to the resulting
executable. It's not for enable debugging of the linker itself.
Modified:
lld/trunk/lib/Driver/WinLinkDriver.cpp
lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
Modified: lld/trunk/lib/Driver/WinLinkDriver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkDriver.cpp?rev=196040&r1=196039&r2=196040&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkDriver.cpp (original)
+++ lld/trunk/lib/Driver/WinLinkDriver.cpp Sun Dec 1 00:25:30 2013
@@ -795,9 +795,6 @@ WinLinkDriver::parse(int argc, const cha
// LLD is not yet capable of creating a PDB file, so /debug does not have
// any effect, other than disabling dead stripping.
ctx.setDeadStripping(false);
-
- // Prints out input files during core linking to help debugging.
- ctx.setLogInputFiles(true);
break;
case OPT_force:
Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=196040&r1=196039&r2=196040&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Sun Dec 1 00:25:30 2013
@@ -436,7 +436,6 @@ TEST_F(WinLinkParserTest, SwapRunFromNet
TEST_F(WinLinkParserTest, Debug) {
EXPECT_TRUE(parse("link.exe", "/debug", "a.out", nullptr));
EXPECT_FALSE(_context.deadStrip());
- EXPECT_TRUE(_context.logInputFiles());
}
TEST_F(WinLinkParserTest, Fixed) {
More information about the llvm-commits
mailing list