[llvm] r181097 - Don't store the context in the Linker.
Rafael Espindola
rafael.espindola at gmail.com
Fri May 3 19:34:41 PDT 2013
Author: rafael
Date: Fri May 3 21:34:41 2013
New Revision: 181097
URL: http://llvm.org/viewvc/llvm-project?rev=181097&view=rev
Log:
Don't store the context in the Linker.
Modified:
llvm/trunk/include/llvm/Linker.h
llvm/trunk/lib/Linker/Linker.cpp
Modified: llvm/trunk/include/llvm/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker.h?rev=181097&r1=181096&r2=181097&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker.h Fri May 3 21:34:41 2013
@@ -111,7 +111,6 @@ class Linker {
/// @name Data
/// @{
private:
- LLVMContext& Context; ///< The context for global information
Module* Composite; ///< The composite module linked together
/// @}
Modified: llvm/trunk/lib/Linker/Linker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/Linker.cpp?rev=181097&r1=181096&r2=181097&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/Linker.cpp (original)
+++ llvm/trunk/lib/Linker/Linker.cpp Fri May 3 21:34:41 2013
@@ -21,11 +21,9 @@ using namespace llvm;
Linker::Linker(StringRef modname,
LLVMContext& C):
- Context(C),
Composite(new Module(modname, C)) { }
Linker::Linker(Module* aModule) :
- Context(aModule->getContext()),
Composite(aModule) { }
Linker::~Linker() {
More information about the llvm-commits
mailing list