diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-01 23:13:44 +0000 |
commit | 2a15443aa800aeb61783809c8a686e5e35b1a4db (patch) | |
tree | 9d2e438d1ccb26eee4da98268d6e64a2e6c2bbe2 /llvm/tools/bugpoint | |
parent | 83ff184206a418387992109015ca83f220788f0d (diff) | |
download | bcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.tar.gz bcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.zip |
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.
llvm-svn: 74655
Diffstat (limited to 'llvm/tools/bugpoint')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.cpp | 4 | ||||
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp index 93b09fb381c..847de1f8066 100644 --- a/llvm/tools/bugpoint/BugDriver.cpp +++ b/llvm/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()) diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h index 34267d55a62..d637c2438bf 100644 --- a/llvm/tools/bugpoint/BugDriver.h +++ b/llvm/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 |