summaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
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.cpp
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.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index 93b09fb381..847de1f806 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/tools/bugpoint/BugDriver.cpp
@@ -65,7 +65,7 @@ std::string llvm::getPassesString(const std::vector<const PassInfo*> &Passes) {
BugDriver::BugDriver(const char *toolname, bool as_child, bool find_bugs,
unsigned timeout, unsigned memlimit,
- const LLVMContext& ctxt)
+ LLVMContext& ctxt)
: Context(ctxt), ToolName(toolname), ReferenceOutputFile(OutputFile),
Program(0), Interpreter(0), SafeInterpreter(0), gcc(0),
run_as_child(as_child), run_find_bugs(find_bugs), Timeout(timeout),
@@ -76,7 +76,7 @@ BugDriver::BugDriver(const char *toolname, bool as_child, bool find_bugs,
/// return it, or return null if not possible.
///
Module *llvm::ParseInputFile(const std::string &Filename,
- const LLVMContext& Ctxt) {
+ LLVMContext& Ctxt) {
std::auto_ptr<MemoryBuffer> Buffer(MemoryBuffer::getFileOrSTDIN(Filename));
Module *Result = 0;
if (Buffer.get())