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 | 92adb18f63b3e007acf7cde59318c595ed9d3d40 (patch) | |
| tree | dc0e25b2f2b2706339e64e4f654d2a442ab97018 /lib/VMCore | |
| parent | 886d79aeac2c0edcdd13a5e83c0a806630a375fc (diff) | |
| download | external_llvm-92adb18f63b3e007acf7cde59318c595ed9d3d40.zip external_llvm-92adb18f63b3e007acf7cde59318c595ed9d3d40.tar.gz external_llvm-92adb18f63b3e007acf7cde59318c595ed9d3d40.tar.bz2 | |
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 'lib/VMCore')
| -rw-r--r-- | lib/VMCore/LLVMContext.cpp | 2 | ||||
| -rw-r--r-- | lib/VMCore/Module.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp index d29b758..24df598 100644 --- a/lib/VMCore/LLVMContext.cpp +++ b/lib/VMCore/LLVMContext.cpp @@ -22,7 +22,7 @@ using namespace llvm; static ManagedStatic<LLVMContext> GlobalContext; -const LLVMContext& llvm::getGlobalContext() { +LLVMContext& llvm::getGlobalContext() { return *GlobalContext; } diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index 5ccd7cc..f057e81 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -55,7 +55,7 @@ template class SymbolTableListTraits<GlobalAlias, Module>; // Primitive Module methods. // -Module::Module(const std::string &MID, const LLVMContext& C) +Module::Module(const std::string &MID, LLVMContext& C) : Context(C), ModuleID(MID), DataLayout("") { ValSymTab = new ValueSymbolTable(); TypeSymTab = new TypeSymbolTable(); |
