]> granicus.if.org Git - clang/commitdiff
Driver: Add assert and FIXME; arguments which act as linker inputs
authorDaniel Dunbar <daniel@zuster.org>
Wed, 18 Mar 2009 08:02:40 +0000 (08:02 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 18 Mar 2009 08:02:40 +0000 (08:02 +0000)
(e.g., -filelist) are currently broken.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67183 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index f06166e930f5384fd04f3b8be22da00a686620b1..f2e965c1a74fce83d617de79acbe567445048823 100644 (file)
@@ -665,6 +665,9 @@ void Driver::BuildJobsForAction(Compilation &C,
                                 InputInfo &Result) const {
   llvm::PrettyStackTraceString CrashInfo("Building compilation jobs for action");
   if (const InputAction *IA = dyn_cast<InputAction>(A)) {
+    // FIXME: This is broken, linker inputs won't work here.
+    assert(isa<PositionalArg>(IA->getInputArg()) && "FIXME: Linker inputs");
+
     IA->getInputArg().claim();
     const char *Name = IA->getInputArg().getValue(C.getArgs());
     Result = InputInfo(Name, A->getType(), Name);