summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
commit4434ed44c45c87a72b7a0bf2f91211f895022b91 (patch)
treedc0e25b2f2b2706339e64e4f654d2a442ab97018 /tools/bugpoint/BugDriver.h
parent82c32c42724f92b899287b4f34029eb1170c43f9 (diff)
downloadllvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.gz
llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.bz2
llvm-4434ed44c45c87a72b7a0bf2f91211f895022b91.tar.xz
Make the use of const with respect to LLVMContext sane. Hopefully this is the last time, for the
moment, that I will need to make far-reaching changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 34267d55a6..d637c2438b 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -43,7 +43,7 @@ extern bool DisableSimplifyCFG;
extern bool BugpointIsInterrupted;
class BugDriver {
- const LLVMContext& Context;
+ LLVMContext& Context;
const std::string ToolName; // Name of bugpoint
std::string ReferenceOutputFile; // Name of `good' output file
Module *Program; // The raw program, linked together
@@ -62,11 +62,11 @@ class BugDriver {
public:
BugDriver(const char *toolname, bool as_child, bool find_bugs,
- unsigned timeout, unsigned memlimit, const LLVMContext& ctxt);
+ unsigned timeout, unsigned memlimit, LLVMContext& ctxt);
const std::string &getToolName() const { return ToolName; }
- const LLVMContext& getContext() { return Context; }
+ LLVMContext& getContext() { return Context; }
// Set up methods... these methods are used to copy information about the
// command line arguments into instance variables of BugDriver.
@@ -295,7 +295,7 @@ private:
/// return it, or return null if not possible.
///
Module *ParseInputFile(const std::string &InputFilename,
- const LLVMContext& ctxt);
+ LLVMContext& ctxt);
/// getPassesString - Turn a list of passes into a string which indicates the