summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Archive/ArchiveReader.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
committerOwen Anderson <resistor@mac.com>2009-07-01 23:13:44 +0000
commit2a15443aa800aeb61783809c8a686e5e35b1a4db (patch)
tree9d2e438d1ccb26eee4da98268d6e64a2e6c2bbe2 /llvm/lib/Archive/ArchiveReader.cpp
parent83ff184206a418387992109015ca83f220788f0d (diff)
downloadbcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.tar.gz
bcm5719-llvm-2a15443aa800aeb61783809c8a686e5e35b1a4db.zip
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. llvm-svn: 74655
Diffstat (limited to 'llvm/lib/Archive/ArchiveReader.cpp')
-rw-r--r--llvm/lib/Archive/ArchiveReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Archive/ArchiveReader.cpp b/llvm/lib/Archive/ArchiveReader.cpp
index 2393554ede8..718d44608b1 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, const LLVMContext& C,
+Archive::OpenAndLoad(const sys::Path& file, LLVMContext& C,
std::string* ErrorMessage) {
std::auto_ptr<Archive> result ( new Archive(file, C));
if (result->mapToMemory(ErrorMessage))
@@ -442,7 +442,7 @@ Archive::loadSymbolTable(std::string* ErrorMsg) {
// Open the archive and load just the symbol tables
Archive* Archive::OpenAndLoadSymbols(const sys::Path& file,
- const LLVMContext& C,
+ LLVMContext& C,
std::string* ErrorMessage) {
std::auto_ptr<Archive> result ( new Archive(file, C) );
if (result->mapToMemory(ErrorMessage))
OpenPOWER on IntegriCloud