summaryrefslogtreecommitdiff
path: root/tools/lto-bugpoint/LTOBugPoint.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-07-18 22:59:45 +0000
committerDevang Patel <dpatel@apple.com>2008-07-18 22:59:45 +0000
commit8e450f07ade3acd6be83ab4b8708be814035640f (patch)
treebb88dedd8c8390f47bb1b64c9e0171474a6e6e18 /tools/lto-bugpoint/LTOBugPoint.cpp
parentc3e26727c18e15b64098fc7f397e09147cd78eeb (diff)
downloadllvm-8e450f07ade3acd6be83ab4b8708be814035640f.tar.gz
llvm-8e450f07ade3acd6be83ab4b8708be814035640f.tar.bz2
llvm-8e450f07ade3acd6be83ab4b8708be814035640f.tar.xz
Start writing lto-bugpoint tool.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto-bugpoint/LTOBugPoint.cpp')
-rw-r--r--tools/lto-bugpoint/LTOBugPoint.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/tools/lto-bugpoint/LTOBugPoint.cpp b/tools/lto-bugpoint/LTOBugPoint.cpp
new file mode 100644
index 0000000000..83ed134816
--- /dev/null
+++ b/tools/lto-bugpoint/LTOBugPoint.cpp
@@ -0,0 +1,28 @@
+//===- LTOBugPoint.cpp - Top-Level LTO BugPoint class ---------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+//
+// This class contains all of the shared state and information that is used by
+// the LTO BugPoint tool to track down bit code files that cause errors.
+//
+//===----------------------------------------------------------------------===//
+
+#include "LTOBugPoint.h"
+
+LTOBugPoint::LTOBugPoint(std::istream &args, std::istream &ins) {
+
+ // Read linker options. Order is important here.
+ std::string option;
+ while (getline(args, option))
+ LinkerOptions.push_back(option);
+
+ // Read linker input files. Order is important here.
+ std::string inFile;
+ while(getline(ins, inFile))
+ LinkerInputFiles.push_back(inFile);
+}