summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Archive/ArchiveReader.cpp
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
commit1cf085d558fd73f2599fb68e600365dd20502e2b (patch)
tree39bfcf795980a39bd173e8cbc60962da057bbd9d /llvm/lib/Archive/ArchiveReader.cpp
parent52337414b78f00aa7ff498e5872fd428996e8fe5 (diff)
downloadbcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.tar.gz
bcm5719-llvm-1cf085d558fd73f2599fb68e600365dd20502e2b.zip
Hold the LLVMContext by reference rather than by pointer.
llvm-svn: 74640
Diffstat (limited to 'llvm/lib/Archive/ArchiveReader.cpp')
-rw-r--r--llvm/lib/Archive/ArchiveReader.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Archive/ArchiveReader.cpp b/llvm/lib/Archive/ArchiveReader.cpp
index 4e3e28166ca..2393554ede8 100644
--- a/llvm/lib/Archive/ArchiveReader.cpp
+++ b/llvm/lib/Archive/ArchiveReader.cpp
@@ -327,7 +327,7 @@ Archive::loadArchive(std::string* error) {
// Open and completely load the archive file.
Archive*
-Archive::OpenAndLoad(const sys::Path& file, LLVMContext* C,
+Archive::OpenAndLoad(const sys::Path& file, const LLVMContext& C,
std::string* ErrorMessage) {
std::auto_ptr<Archive> result ( new Archive(file, C));
if (result->mapToMemory(ErrorMessage))
@@ -441,7 +441,8 @@ Archive::loadSymbolTable(std::string* ErrorMsg) {
}
// Open the archive and load just the symbol tables
-Archive* Archive::OpenAndLoadSymbols(const sys::Path& file, LLVMContext* C,
+Archive* Archive::OpenAndLoadSymbols(const sys::Path& file,
+ const LLVMContext& C,
std::string* ErrorMessage) {
std::auto_ptr<Archive> result ( new Archive(file, C) );
if (result->mapToMemory(ErrorMessage))
OpenPOWER on IntegriCloud