Driver: Add assert and FIXME; arguments which act as linker inputs

(e.g., -filelist) are currently broken.

llvm-svn: 67183
This commit is contained in:
Daniel Dunbar 2009-03-18 08:02:40 +00:00
parent 8eba365d36
commit dcd05482bd
1 changed files with 3 additions and 0 deletions

View 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);