blob: 83ed134816c187fdb6743fff7e16f4b0a6c668b0 [file] [log] [blame]
Devang Patel8e450f02008-07-18 22:59:45 +00001//===- LTOBugPoint.cpp - Top-Level LTO BugPoint class ---------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This class contains all of the shared state and information that is used by
11// the LTO BugPoint tool to track down bit code files that cause errors.
12//
13//===----------------------------------------------------------------------===//
14
15#include "LTOBugPoint.h"
16
17LTOBugPoint::LTOBugPoint(std::istream &args, std::istream &ins) {
18
19 // Read linker options. Order is important here.
20 std::string option;
21 while (getline(args, option))
22 LinkerOptions.push_back(option);
23
24 // Read linker input files. Order is important here.
25 std::string inFile;
26 while(getline(ins, inFile))
27 LinkerInputFiles.push_back(inFile);
28}