[lld] r191273 - [PECOFF] Ignore /pdbaltpath option.
Rui Ueyama
ruiu at google.com
Mon Sep 23 21:04:01 PDT 2013
Author: ruiu
Date: Mon Sep 23 23:04:00 2013
New Revision: 191273
URL: http://llvm.org/viewvc/llvm-project?rev=191273&view=rev
Log:
[PECOFF] Ignore /pdbaltpath option.
/PDBALTPATH:<path> is an option to embed a different path for the PDB file to
the binary than the actual PDB file location. Because we don't support PDB
file, we'll just ignore the option for now.
Modified:
lld/trunk/lib/Driver/WinLinkOptions.td
lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
Modified: lld/trunk/lib/Driver/WinLinkOptions.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/WinLinkOptions.td?rev=191273&r1=191272&r2=191273&view=diff
==============================================================================
--- lld/trunk/lib/Driver/WinLinkOptions.td (original)
+++ lld/trunk/lib/Driver/WinLinkOptions.td Mon Sep 23 23:04:00 2013
@@ -75,6 +75,7 @@ def incremental : F<"incremental">;
def no_incremental : F<"incremental:no">;
def pdb : Q<"pdb">;
+def pdbaltpath : Q<"pdbaltpath">;
def errorreport : Q<"errorreport">;
def delay : Q<"delay">;
def delayload : Q<"delayload">;
Modified: lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp?rev=191273&r1=191272&r2=191273&view=diff
==============================================================================
--- lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp (original)
+++ lld/trunk/unittests/DriverTests/WinLinkDriverTest.cpp Mon Sep 23 23:04:00 2013
@@ -364,7 +364,8 @@ TEST_F(WinLinkParserTest, Ignore) {
// compatibility with link.exe.
EXPECT_FALSE(parse("link.exe", "/nologo", "/errorreport:prompt",
"/incremental", "/incremental:no", "/delay:unload",
- "/delayload:user32", "/pdb:foo", "a.obj", nullptr));
+ "/delayload:user32", "/pdb:foo", "/pdbaltpath:bar",
+ "a.obj", nullptr));
EXPECT_EQ("", errorMessage());
EXPECT_EQ(1, inputFileCount());
EXPECT_EQ("a.obj", inputFile(0));
More information about the llvm-commits
mailing list