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
This commit is contained in:
Owen Anderson
2009-07-01 23:13:44 +00:00
parent 82c32c4272
commit 4434ed44c4
29 changed files with 58 additions and 58 deletions
+3 -3
View File
@@ -110,7 +110,7 @@ public:
/// @name Member Variables
/// @{
private:
const LLVMContext& Context; ///< The LLVMContext from which types and
LLVMContext& Context; ///< The LLVMContext from which types and
///< constants are allocated.
GlobalListType GlobalList; ///< The Global Variables in the module
FunctionListType FunctionList; ///< The Functions in the module
@@ -131,7 +131,7 @@ private:
public:
/// The Module constructor. Note that there is no default constructor. You
/// must provide a name for the module upon construction.
explicit Module(const std::string &ModuleID, const LLVMContext& C);
explicit Module(const std::string &ModuleID, LLVMContext& C);
/// The module destructor. This will dropAllReferences.
~Module();
@@ -162,7 +162,7 @@ public:
/// Get the global data context.
/// @returns LLVMContext - a container for LLVM's global information
const LLVMContext& getContext() const { return Context; }
LLVMContext& getContext() const { return Context; }
/// Get any module-scope inline assembly blocks.
/// @returns a string containing the module-scope inline assembly blocks.