forked from OSchip/llvm-project
				
			[PECOFF] Enable input file logging if /debug is given.
llvm-svn: 191469
This commit is contained in:
		
							parent
							
								
									7c1a445c9e
								
							
						
					
					
						commit
						3c6ee599a2
					
				| 
						 | 
					@ -414,6 +414,9 @@ bool WinLinkDriver::parse(int argc, const char *argv[], PECOFFLinkingContext &ct
 | 
				
			||||||
      // LLD is not yet capable of creating a PDB file, so /debug does not have
 | 
					      // LLD is not yet capable of creating a PDB file, so /debug does not have
 | 
				
			||||||
      // any effect, other than disabling dead stripping.
 | 
					      // any effect, other than disabling dead stripping.
 | 
				
			||||||
      ctx.setDeadStripping(false);
 | 
					      ctx.setDeadStripping(false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      // Prints out input files during core linking to help debugging.
 | 
				
			||||||
 | 
					      ctx.setLogInputFiles(true);
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    case OPT_force:
 | 
					    case OPT_force:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,6 +61,7 @@ TEST_F(WinLinkParserTest, Basic) {
 | 
				
			||||||
  EXPECT_TRUE(_context.isTerminalServerAware());
 | 
					  EXPECT_TRUE(_context.isTerminalServerAware());
 | 
				
			||||||
  EXPECT_TRUE(_context.getDynamicBaseEnabled());
 | 
					  EXPECT_TRUE(_context.getDynamicBaseEnabled());
 | 
				
			||||||
  EXPECT_TRUE(_context.deadStrip());
 | 
					  EXPECT_TRUE(_context.deadStrip());
 | 
				
			||||||
 | 
					  EXPECT_FALSE(_context.logInputFiles());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TEST_F(WinLinkParserTest, StartsWithHyphen) {
 | 
					TEST_F(WinLinkParserTest, StartsWithHyphen) {
 | 
				
			||||||
| 
						 | 
					@ -318,6 +319,7 @@ TEST_F(WinLinkParserTest, SwapRunFromNet) {
 | 
				
			||||||
TEST_F(WinLinkParserTest, Debug) {
 | 
					TEST_F(WinLinkParserTest, Debug) {
 | 
				
			||||||
  EXPECT_TRUE(parse("link.exe", "/debug", "a.out", nullptr));
 | 
					  EXPECT_TRUE(parse("link.exe", "/debug", "a.out", nullptr));
 | 
				
			||||||
  EXPECT_FALSE(_context.deadStrip());
 | 
					  EXPECT_FALSE(_context.deadStrip());
 | 
				
			||||||
 | 
					  EXPECT_TRUE(_context.logInputFiles());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
TEST_F(WinLinkParserTest, Fixed) {
 | 
					TEST_F(WinLinkParserTest, Fixed) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue