mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-01-08 14:22:53 +00:00
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
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user