summaryrefslogtreecommitdiff
path: root/include/llvm/Linker.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 21:22:36 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 21:22:36 +0000
commit31895e73591d3c9ceae731a1274c8f56194b9616 (patch)
tree9e5f714db4af7dddfab061cb0016489f6d114c56 /include/llvm/Linker.h
parentfcd65ae28fe797c174be350a07955713fd42d110 (diff)
downloadllvm-31895e73591d3c9ceae731a1274c8f56194b9616.tar.gz
llvm-31895e73591d3c9ceae731a1274c8f56194b9616.tar.bz2
llvm-31895e73591d3c9ceae731a1274c8f56194b9616.tar.xz
Hold the LLVMContext by reference rather than by pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Linker.h')
-rw-r--r--include/llvm/Linker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h
index 8389dc770e..2ab0ed4705 100644
--- a/include/llvm/Linker.h
+++ b/include/llvm/Linker.h
@@ -67,7 +67,7 @@ class Linker {
Linker(
const std::string& progname, ///< name of tool running linker
const std::string& modulename, ///< name of linker's end-result module
- LLVMContext* C, ///< Context for global info
+ const LLVMContext& C, ///< Context for global info
unsigned Flags = 0 ///< ControlFlags (one or more |'d together)
);
@@ -285,7 +285,7 @@ class Linker {
/// @name Data
/// @{
private:
- LLVMContext* Context; ///< The context for global information
+ const LLVMContext& Context; ///< The context for global information
Module* Composite; ///< The composite module linked together
std::vector<sys::Path> LibPaths; ///< The library search paths
unsigned Flags; ///< Flags to control optional behavior.