blob: b73b2672d6ce822764032b99c98d88a25866cfe8 [file] [log] [blame]
Devang Patele330f2d2008-07-18 22:59:45 +00001//===- LTOBugPoint.h - Top-Level LTO BugPoint class -------------*- C++ -*-===//
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 "llvm/ADT/SmallVector.h"
16#include <string>
17#include <fstream>
18
19class LTOBugPoint {
20 public:
21
22 LTOBugPoint(std::istream &args, std::istream &ins);
23
Devang Patel5dd66a02008-07-18 23:46:41 +000024 /// findTroubleMakers - Find minimum set of input files that causes error
25 /// identified by the script.
26 bool findTroubleMakers(llvm::SmallVector<std::string, 4> &TroubleMakers,
27 std::string &Script);
Devang Patele330f2d2008-07-18 22:59:45 +000028 private:
29 /// LinkerInputFiles - This is a list of linker input files. Once populated
30 /// this list is not modified.
31 llvm::SmallVector<std::string, 16> LinkerInputFiles;
Devang Patel5dd66a02008-07-18 23:46:41 +000032
33 /// LinkerOptions - List of linker command line options.
Devang Patele330f2d2008-07-18 22:59:45 +000034 llvm::SmallVector<std::string, 16> LinkerOptions;
35
Devang Patel5dd66a02008-07-18 23:46:41 +000036 /// NativeInputFiles - This is a list of input files that are not llvm
37 /// bitcode files. The order in this list is important. The a file
38 /// in LinkerInputFiles at index 4 is a llvm bitcode file then the file
39 /// at index 4 in NativeInputFiles is corresponding native object file.
40 llvm::SmallVector<std::string, 16> NativeInputFiles;
41
Devang Patele330f2d2008-07-18 22:59:45 +000042};