[cfe-commits] r67183 - /cfe/trunk/lib/Driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Wed Mar 18 01:02:40 PDT 2009


Author: ddunbar
Date: Wed Mar 18 03:02:40 2009
New Revision: 67183

URL: http://llvm.org/viewvc/llvm-project?rev=67183&view=rev
Log:
Driver: Add assert and FIXME; arguments which act as linker inputs
(e.g., -filelist) are currently broken.

Modified:
    cfe/trunk/lib/Driver/Driver.cpp

Modified: cfe/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Driver.cpp?rev=67183&r1=67182&r2=67183&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Driver.cpp (original)
+++ cfe/trunk/lib/Driver/Driver.cpp Wed Mar 18 03:02:40 2009
@@ -665,6 +665,9 @@
                                 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);





More information about the cfe-commits mailing list